我们正在使用Kops来管理Kubernetes集群。群集状态如下:
Validating cluster mofang-pipeline.k8s.local
INSTANCE GROUPS
NAME ROLE MACHINETYPE MIN MAX SUBNETS
master-cn-northwest-1a Master c4.large 1 1 cn-northwest-1a
master-cn-northwest-1b Master c4.large 1 1 cn-northwest-1b
master-cn-northwest-1c Master c4.large 1 1 cn-northwest-1c
nodes Node r4.8xlarge 1 9 cn-northwest-1a,cn-northwest-1b,cn-northwest-1c
NODE STATUS
NAME ROLE READY
ip-10-0-106-49.cn-northwest-1.compute.internal master True
ip-10-0-60-168.cn-northwest-1.compute.internal master True
ip-10-0-72-148.cn-northwest-1.compute.internal node True
ip-10-0-90-130.cn-northwest-1.compute.internal master True
ip-10-0-98-20.cn-northwest-1.compute.internal node True
Your cluster mofang-pipeline.k8s.local is ready
现在有2个节点在运行,我希望有更多的节点。如何让Kops在实例组nodes
中启动新节点?
答案 0 :(得分:0)
您可以使用命令
自定义群集配置#kops edit cluster ${CLUSTER_NAME}
此命令打开一个编辑器(由$ EDITOR定义),允许您编辑配置。配置从S3存储桶加载,并在保存和退出编辑器时自动更新。
之后,您可以使用以下命令使其反映在您的群集上
#kops update cluster ${CLUSTER_NAME} --yes