Forum Navigation
You need to log in to create posts and topics.

Uninstall Kubernetes from Ubuntu

Problem

User wants to completely remove kubernetes and docker from CentOS 7

Solution 

run the following commands on the Master node

Remove All data and Nodes from the Cluster

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

Reset and Delete

sudo kubeadm reset
sudo apt-get purge kubeadm kubectl kubelet kubernetes-cni kube*
sudo apt-get autoremove sudo rm -rf ~/.kube

 

 

If you have found my website, guides, articles or videos useful, please buy me a coffee