![](/img/trans.png)
[英]Connection refused on KOPS deployed master node in kubernetes cluster hosted on AWS
[英]Only two master nodes are up in Kubernetes cluster with kops in AWS
我正在尝试使用 KOPS 在 AWS 中设置 kubernetes 集群。 我配置了 3 个主节点和 6 个节点。 但是在启动集群后,只有两个主节点启动。
我使用.k8s.local
DNS 而不是购买的 DNS。 下面是我用于创建集群的脚本。
kops create cluster \
--cloud=aws \
--name=kops-cassandra-cluster-01.k8s.local \
--zones=ap-south-1a,ap-south-1b,ap-south-1c \
--master-size="t2.small" \
--master-count 3 \
--master-zones=ap-south-1a,ap-south-1b,ap-south-1c \
--node-size="t2.small" \
--ssh-public-key="kops-cassandra-cluster-01.pub" \
--state=s3://kops-cassandra-cluster-01 \
--node-count=6
执行kops update cluster --name=kops-cassandra-cluster-01.k8s.local --state=s3://kops-cassandra-cluster-01 --yes
只有两个主节点可用,而不是 3 个。
kubectl get nodes
显示:
NAME STATUS ROLES AGE VERSION
ip-172-20-44-37.ap-south-1.compute.internal Ready master 18m v1.12.8
ip-172-20-52-78.ap-south-1.compute.internal Ready node 18m v1.12.8
ip-172-20-60-234.ap-south-1.compute.internal Ready node 18m v1.12.8
ip-172-20-61-141.ap-south-1.compute.internal Ready node 18m v1.12.8
ip-172-20-66-215.ap-south-1.compute.internal Ready node 18m v1.12.8
ip-172-20-69-124.ap-south-1.compute.internal Ready master 18m v1.12.8
ip-172-20-85-58.ap-south-1.compute.internal Ready node 18m v1.12.8
ip-172-20-90-119.ap-south-1.compute.internal Ready node 18m v1.12.8
我是 Kubernetes 的新手。 我错过了什么吗?
经过大量研究后,我才知道这是因为 t2.small 实例类型在 ap-south-1c 中不可用。 将zone修改为eu-west-1a、eu-west-1b、eu-west-1c后,可以看到3个master节点和6个worker节点。 感谢@mchawre 的帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.