uninstall kubeadm ubuntu code example
Example 1: uninstall kubeadm
kubeadm reset # on debian base sudo apt-get purge kubeadm kubectl kubelet kubernetes-cni kube* #on centos basesudo yum remove kubeadm kubectl kubelet kubernetes-cni kube*# on debian basesudo apt-get autoremove#on centos basesudo yum autoremove sudo rm -rf ~/.kube
Example 2: uninstall kubeadm
kubectl drain <node name> — delete-local-data — force — ignore-daemonsetskubectl delete node <node name>