kubernetes - dns-controller Kubernetes 部署尚未更新 Kubernetes 集群的 - AWS

标签 kubernetes kubectl kops

我正在尝试在 aws 和
验证时一直失败。使用以下命令更新集群 kops update cluster cluster.foo.com --yes并运行后
这个kops validate cluster

Using cluster from kubectl context: cluster.foo.com

Validating cluster cluster.api.com

INSTANCE GROUPS
NAME            ROLE    MACHINETYPE MIN MAX SUBNETS
master-eu-west-2a   Master  t2.medium   1   1   eu-west-2a
nodes           Node    t2.medium   2   2   eu-west-2a

NODE STATUS
NAME    ROLE    READY

VALIDATION ERRORS
KIND    NAME        MESSAGE
dns apiserver   Validation Failed

The dns-controller Kubernetes deployment has not updated the Kubernetes cluster's API DNS entry to the correct IP address.  The API DNS IP address is the placeholder address that kops creates: 203.0.113.123.  Please wait about 5-10 minutes for a master to start, dns-controller to launch, and DNS to propagate.  The protokube container and dns-controller deployment logs may contain more diagnostic information.  Etcd and the API DNS entries must be updated for a kops Kubernetes cluster to start.

Validation Failed

请帮助找出根本原因。 1. 我尝试多次删除和重新创建,但这对我没有帮助。 2. 还尝试手动将主公共(public)和私有(private) IP 放置到路由 53,但它破坏了一切。

最佳答案

根据我的经验,如果您的 kops 版本和 kubectl 以及 kubernetes 平面版本有差异,那么 Kops 将永远不会更新 Route53 输入,在我的情况下您必须对所有人都具有相同的版本

[root@ip-20-0-0-66 kuberneteswithkops]# kops version
Version 1.15.0 (git-9992b4055)
[root@ip-20-0-0-66 kuberneteswithkops]# kubectl version
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", GitCommit:"2d3c76f9091b6bec110a5e63777c332469e0cba2", GitTreeState:"clean", BuildDate:"2019-08-19T11:13:54Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}`

关于kubernetes - dns-controller Kubernetes 部署尚未更新 Kubernetes 集群的 - AWS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54522497/

相关文章:

docker - Elasticsearch Pod没有运行重启

kubernetes - Horizo​​ntal Pod Autoscaler 中 API 版本 v2beta1 和 v2beta2 之间的区别?

kubernetes - 如何在 Kubernetes 容器中安装 JProfiler 代理?

c# - RabbitMQ,REST API,Docker和Kubernete最佳实践问题

amazon-web-services - kubernetes + coreos 集群 - 替换证书

kubernetes - kubectl - 列出所有服务的所有端口转发?

kubernetes - 我可以在 Kubernetes 中设置默认命名空间吗?

elasticsearch - 使用Kops + Docker 1.11在Kubernetes容器中设置sysctl key

docker - 如果前端和后端位于kubernetes内的单独Pod和主机中,前端如何与后端通信?

AWS 上 kops 的 Kubernetes 仪表板仅显示 json