<p>I am attempting to run compose up and am running the following command <code>sudo kompose up --push-image=false --verbose</code> kompose builds all the containers successfully but right at the very end throws this error:</p>

<pre><code>FATA Error while deploying application: Get https://127.0.0.1:6443/api: dial tcp 127.0.0.1:6443: connect: connection refused 
</code></pre>

<p>I have even run <code>kubectl proxy</code> but this didn't fix the problem, can anyone please help?</p>

<p>EDIT: To clarify I am using minikube, it is running in the background but Kompose still doesn't work.</p>

<p>Turns out the issue ended up being the fact that the certificates for the kubectl proxy commanded were not self signed by default, I got around this using <code>kompose up --server http://127.0.0.1:6443</code> but I cannot use the Kubernetes Dashboard without the certificates.</p>
