如何使用 kops 在 Kubernetes 中启动一个新节点?
How to start a new node in Kubernetes using kops?
我们正在使用 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
?
您可以使用命令自定义集群配置
#kops edit cluster ${CLUSTER_NAME}
此命令打开一个编辑器(由 $EDITOR 定义)并允许您编辑配置。配置从S3 bucket加载,保存退出编辑器时会自动更新。
之后,您可以使用以下命令使其反映在您的集群上
#kops update cluster ${CLUSTER_NAME} --yes
我们正在使用 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
?
您可以使用命令自定义集群配置
#kops edit cluster ${CLUSTER_NAME}
此命令打开一个编辑器(由 $EDITOR 定义)并允许您编辑配置。配置从S3 bucket加载,保存退出编辑器时会自动更新。
之后,您可以使用以下命令使其反映在您的集群上
#kops update cluster ${CLUSTER_NAME} --yes