Completely removing Kubernetes from Ubuntu
Apr 30, 2022
If you want to remove Kubernetes from your Ubuntu node, you can use the following commands.
The step needs to be followed on all the nodes in the cluster, where you want to remove the configuration
kubeadm reset
sudo apt-get purge kubeadm kubectl kubelet kubernetes-cni kube*
sudo apt-get autoremove
sudo rm -rf ~/.kube
Here are the logs for reference.