Created
July 13, 2023 11:29
-
-
Save alexnoz/debdd47b0acfc2a94d6b25959f2286ed to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
kubeadm reset -f | |
yum remove -y kube* containerd* docker* nginx cri* | |
rm -rf /etc/containerd /etc/cni/net.d /home/docker /var/log/nginx /home/cert-deploy /home/containerd /etc/ansible-iptables | |
iptables-save | awk '/^[*]/ { print $1 } | |
/^:[A-Z]+ [^-]/ { print $1 " ACCEPT" ; } | |
/COMMIT/ { print $0; }' | iptables-restore | |
iptables-save > /etc/sysconfig/iptables |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment