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

San*_*aha 5 kubernetes kubectl kops

我正在尝试在 aws 上建立一个 kubernetes 集群,但在验证时它一直失败。使用以下命令更新集群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
Run Code Online (Sandbox Code Playgroud)

请帮助查找根本原因。

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

Man*_*Ali 0

根据我的经验,如果您的 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"}`
Run Code Online (Sandbox Code Playgroud)