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
Add Comment