gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 11:29:29 25 4
gpt4 key购买 nike

我正在尝试在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com