Kuberbetes: Kompose up error while deploying application

3/10/2020

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

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

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

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

-- Winux503
devops
kompose
kubernetes

1 Answer

3/11/2020

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 kompose up --server http://127.0.0.1:6443 but I cannot use the Kubernetes Dashboard without the certificates.

-- Winux503
Source: StackOverflow