Cluster Uninstallation
Delete All Kubernetes Resources
This only needs to be executed once on one of the master nodes)
Graceful delete
kubectl delete all --all -AForceful delete (If you encounter an error of being stuck in graceful delete)
kubectl delete all --all -A --grace-period=0 --forceRemove HA cluster
This needs to be executed for each of the master nodes
Drain the HA nodes
kubectl drain <master-node-name> --delete-emptydir-data --force --ignore-daemonsetsDelete HA nodes
kubectl delete node <master-node-name>Reset Kubeadm
Run on each of the nodes (Master nodes and Worker nodes)
Uninstall kubeadm, kubectl, and kubelet
Remove redundant configurations and files
Reset iptables
Reset containerd
Clean up Hosts File
Last updated
Was this helpful?