Docker Technical Articles

How to Uninstall Kubernetes in Ubuntu

How to Uninstall Kubernetes in Ubuntu

Kubernetes uninstall need to follow few steps. First need to drain the nodes and remove from cluster ,

kubectl drain <<node name>> — delete-local-data — force — ignore-daemonsets
kubectl delete node <<nodename>>

Once nodes remove reset kubeadm,

kubeadm reset  

now purge remove the dependent packages,

sudo apt-get purge kubeadm kubectl kubelet kubernetes-cni kube*
sudo apt-get autoremove

Remove kube folder with following,

sudo rm -rf ~/.kube

Post all the above steps reboot is mandatory for complete deletion.

Tags: k8s, kubernetes, tech news,mytecharticle,knowledge article, openstack , openstack artices

About the author

admin

Add Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.