我正在GCE上运行一个三节点集群。我想排出一个节点并删除底层VM。
kubectl drain命令的文档显示:
Once it returns (without giving an error), you can power down the node (or equivalently, if on a cloud platform, delete the virtual machine backing the node)
我执行以下命令:
rx9p。
$ kl排出gke-j集群-默认-池-9cc4e660-rx9p-强制节点“gke-j群集-默认-池-9cc4e660-rx9p”警戒线警告:删除非由ReplicationController、ReplicaSet、作业、DaemonSet或StatefulSet管理的吊舱:ReplicationController节点“gke-j群集-默认-池-9cc4e660-rx9p”rx9p。如果我做了kubectl get nodes,我也看到了rx9p节点。到底怎么回事?正在重新启动我要删除的VM吗?我必须等待命令之间的超时吗?
发布于 2017-03-29 15:39:14
您在正确的轨道上,首先排水节点。
节点(计算实例)是托管实例组的一部分。如果仅使用gcloud compute instances delete命令删除它们,托管实例组将重新创建它们。
若要正确地删除一个命令,请使用此命令(在您耗尽它之后!):
gcloud compute instance-groups managed delete-instances \
gke-jcluster-default-pool-9cc4e660-grp \
--instances=gke-jcluster-default-pool-9cc4e660-rx9p \
--zone=...https://stackoverflow.com/questions/43095429
复制相似问题