k8s删除节点

2019-07-18  本文已影响0人  钾肥尔德
systemctl stop kubelet
rm -rf /etc/kubernetes/kubelet.conf /etc/kubernetes/bootstrap-kubelet.conf /etc/kubernetes/pki/ ca.crt
rm -rf /var/lib/kubelet/pki/kubelet-client* /var/lib/kubelet/pki/kubelet.*
kubectl drain <node IP|hostname> --delete-local-data  #驱逐node上的pod
kubectl delete node <nodename>

删除
上一篇下一篇

猜你喜欢

热点阅读