How to completely uninstall kubernetes

前端 未结 5 386
说谎
说谎 2020-12-02 15:10

I installed kubernetes cluster using kubeadm following this guide. After some period of time, I decided to reinstall K8s but run into troubles with removing all rel

5条回答
  •  甜味超标
    2020-12-02 15:55

    The guide you linked now has a Tear Down section:

    Talking to the master with the appropriate credentials, run:

    kubectl drain  --delete-local-data --force --ignore-daemonsets
    kubectl delete node 
    

    Then, on the node being removed, reset all kubeadm installed state:

    kubeadm reset
    

提交回复
热议问题