[英]Kuberbetes: Kompose up error while deploying application
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:我正在尝试运行 compose up 并运行以下命令
sudo kompose up --push-image=false --verbose
kompose 成功构建了所有容器,但在最后抛出此错误:
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?我什至运行了
kubectl proxy
但这并没有解决问题,有人可以帮忙吗?
EDIT: To clarify I am using minikube, it is running in the background but Kompose still doesn't work.编辑:为了澄清我使用的是 minikube,它在后台运行,但 Kompose 仍然不起作用。
事实证明,问题最终是这样一个事实,即默认情况下 kubectl 代理命令的证书不是自签名的,我使用kompose up --server http://127.0.0.1:6443
解决了这个kompose up --server http://127.0.0.1:6443
但我无法使用 Kubernetes 仪表板没有证书。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.