简体   繁体   English

Kuberbetes:部署应用程序时出现错误

[英]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.

相关问题 部署应用程序时出错:persistentvolumeclaims 已经存在 - Error while deploying application: persistentvolumeclaims already exists 组合用户名和密码认证 - Kompose up username and password authentication 错误无法将图像'library/web:latest'推送到注册表'docker.io'。 错误:被拒绝:请求的资源访问被拒绝 - Kompose up - ERROR Unable to push image 'library/web:latest' to registry 'docker.io'. Error: denied: requested access to the resource is denied - Kompose up 在 minikube 上部署时出现 ImagePulloff 错误 - ImagePulloff error while deploying on minikube kubernetes组合起来不支持的env_file密钥 - kubernetes kompose up Unsupported env_file key Kompose没有为openzipkin和Elastic带来localhost - Kompose doesn't bring up localhost for openzipkin and Elastic 部署应用程序时出错:Get http://localhost:8080/api: dial tcp [::1]:8080: connectex: - Error while deploying application: Get http://localhost:8080/api: dial tcp [::1]:8080: connectex: 部署到 Kubernetes 集群后启动 angular 应用程序时出现 502 bad gateway 错误 - 502 bad gateway error while launching the angular application after deploying to Kubernetes cluster 将应用程序部署到 Kubernetes 集群时未找到 ConfigMap - ConfigMaps Not Found while Deploying an Application to Kubernetes Cluster Kubernetes kompose - Kubernetes kompose
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM