如何在一个AZ中将一个主人带入kops?

时间:2018-05-05 12:56:32

标签: kubernetes kops

我在AWS 3 AZ中部署了一个集群,我想在每个AZ上启动一个主服务器。其他一切都有效,除了我无法在一个AZ中启动一个主人。

这是我的验证:

INSTANCE GROUPS
NAME                    ROLE    MACHINETYPE     MIN     MAX     SUBNETS
bastions                Bastion t2.micro        1       1       utility-us-east-1a,utility-us-east-1c,utility-us-east-1d
master-us-east-1a       Master  m3.medium       1       1       us-east-1a
master-us-east-1c       Master  m3.medium       2       2       us-east-1c
master-us-east-1d       Master  m3.medium       1       1       us-east-1d
nodes                   Node    m4.xlarge       3       3       us-east-1a,us-east-1c,us-east-1d
workers                 Node    m4.2xlarge      2       2       us-east-1a,us-east-1c,us-east-1d

NODE STATUS
NAME                            ROLE    READY
ip-10-0-100-34.ec2.internal     node    True
ip-10-0-107-127.ec2.internal    master  True
ip-10-0-120-160.ec2.internal    node    True
ip-10-0-35-184.ec2.internal     node    True
ip-10-0-39-224.ec2.internal     master  True
ip-10-0-59-109.ec2.internal     node    True
ip-10-0-87-169.ec2.internal     node    True

VALIDATION ERRORS
KIND            NAME                    MESSAGE
InstanceGroup   master-us-east-1c       InstanceGroup "master-us-east-1c" did not have enough nodes 0 vs 2

Validation Failed

如果我使用滚动更新,则表明有一个主人没有启动:

NAME                    STATUS  NEEDUPDATE      READY   MIN     MAX     NODES
bastions                Ready   0               1       1       1       0
master-us-east-1a       Ready   0               1       1       1       1
master-us-east-1c       Ready   0               0       1       1       0
master-us-east-1d       Ready   0               1       1       1       1
nodes                   Ready   0               3       3       3       3
workers                 Ready   0               2       2       2       2

我该怎么做才能启动该机器?

1 个答案:

答案 0 :(得分:2)

我解决了这个问题。这是因为在该AZ中不再提供m3.medium类型(主站的kops中的默认类型)。将其更改为m4.large使其正常工作。