how to remove kubernetes with all it's dependencies Centos 7

8/15/2018

i want to uninstall kubernetes from Centos 7 and all it's dependencies and files like :

kube-apiserver 
kube-controller-manager  
kubectl                  
kubelet                  
kube-proxy                
kube-scheduler
-- Net Sim
kubernetes

1 Answer

8/15/2018

Check this thread or else these steps should help,

First clean up the pods running into your k8s cluster using,

$ kubectl delete node --all

then remove data volumes and back-up(if it's not needed) from your host system. Finally, you can stop all the k8s services using the script,

$ for service in kube-apiserver kube-controller-manager kubectl kubelet kube-proxy kube-scheduler; do
      systemctl stop $service
  done
$ yum -y remove kubernetes #if it's registered as a service
-- mohan08p
Source: StackOverflow