Kuberbetes:部署应用程序时出现错误 [英] Kuberbetes: Kompose up error while deploying application
问题描述
我正在尝试运行compose并运行以下命令 sudo kompose up --push-image = false --verbose
kompose成功地构建了所有容器在最后抛出此错误:
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
我什至跑了 kubectl代理
但这不能解决问题,任何人都可以帮忙吗?
I have even run kubectl proxy
but this didn't fix the problem, can anyone please help?
编辑:为了澄清我使用的是minikube,它
To clarify I am using minikube, it is running in the background but Kompose still doesn't work.
推荐答案
证明问题最终出在证书的事实上因为默认情况下命令的kubectl代理不是自签名的,所以我使用 kompose up --server http://127.0.0.1:6443
解决了这个问题,但是我不能使用Kubernetes没有证书的仪表板。
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.
这篇关于Kuberbetes:部署应用程序时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!