Created
July 5, 2024 01:51
-
-
Save hunzo/e90ee42317d4cd694f311f3e831e286f to your computer and use it in GitHub Desktop.
Cleanup Kubernetes(k8s)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo kubeadm reset | |
sudo rm -rf ~/.kube | |
sudo rm -rf /etc/cni /etc/kubernetes rm -f /etc/apparmor.d/docker /etc/systemd/system/etcd* | |
sudo rm -rf /var/lib/dockershim /var/lib/etcd /var/lib/kubelet \ | |
/var/lib/etcd2/ /var/run/kubernetes | |
sudo iptables -F && sudo iptables -X | |
sudo iptables -t nat -F && sudo iptables -t nat -X | |
sudo iptables -t raw -F && sudo iptables -t raw -X | |
sudo iptables -t mangle -F && sudo iptables -t mangle -X |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment