美文网首页
Rancher删除节点

Rancher删除节点

作者: 奥个特曼 | 来源:发表于2019-02-12 17:04 被阅读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
    

    相关文章

      网友评论

          本文标题:Rancher删除节点

          本文链接:https://www.haomeiwen.com/subject/opmkeqtx.html