我想使用Kubernetes Cluster在AWS上设置kops。
我有域名tutorialmate.com。我添加了Route53提供的Nameserver。
使用下面的命令创建cluseter:
kops create cluster --name=tutorialmate.com --state=s3://kop-state-009 --zones=eu-west-1a --node-count=2 --node-size=t2.micro --dns-zone=tutorialmate.com
更新的集群:kops update cluster tutorialmate.com --yes --state=s3://kop-state-009
但是当尝试获取节点时:kubectl get nodes
出现以下错误:
无法连接到服务器:在127.0.1.1:53上拨tcp: lookup api.tutorialmate.com :没有这样的主机
我应该知道节点的细节。我可以看到3 EC2实例在eu-west-1a下运行。但是如前所述,得到了错误。
发布于 2020-12-01 17:50:54
可能您的本地系统dns无法解析这个名称,所以您在主机上输入了这个条目:例如。在Windows C:\Windows\System32 32\drivers\etc\主机上
#Ip of AzureKubernetes服务
172.20.xx.xx xxx-dns-xxxxxxx.私有
发布于 2019-07-31 05:45:59
甚至我也得到了同样的错误,所以我将API服务器端点访问从私有更改为公共,这样就可以正常工作了。
但我想这不是正确的方法,所以我仍然在用私人模式找到合适的解决方案。
https://stackoverflow.com/questions/56010067
复制相似问题