- 节点上操作
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.*
- master上操作
kubectl drain <node IP|hostname> --delete-local-data #驱逐node上的pod
kubectl delete node <nodename>
删除
网友评论