Rancher删除节点

2019-02-12  本文已影响1人  奥个特曼

步骤:

$ sudo curl https://gist.githubusercontent.com/mukang/bbf04782bd206c00a26d4d366d3cde63/raw/c7d7e4e2c9f0c1d2b34c75de70627bb28166c063/cleanup.sh > ./cleanup.sh && chmod a+x ./cleanup.sh && sudo ./cleanup.sh
$ for mount in $(mount | grep tmpfs | grep '/var/lib/kubelet' | awk '{ print $3 }') /var/lib/kubelet /var/lib/rancher; do sudo umount $mount; done
$ sudo rm -rf /etc/ceph /etc/cni /etc/kubernetes /opt/cni /opt/rke /run/secrets/kubernetes.io /run/calico /run/flannel /var/lib/calico /var/lib/etcd /var/lib/cni /var/lib/kubelet /var/lib/rancher/rke/log /var/log/containers /var/log/pods /var/run/calico
$ sudo reboot
上一篇下一篇

猜你喜欢

热点阅读