Skip to content

Instantly share code, notes, and snippets.

@Keith-Hon
Last active April 8, 2022 10:00
Show Gist options
  • Save Keith-Hon/3e8bcf998d8aeae0f1f41f19a7d1f409 to your computer and use it in GitHub Desktop.
Save Keith-Hon/3e8bcf998d8aeae0f1f41f19a7d1f409 to your computer and use it in GitHub Desktop.
Reset k8s for master and work nodes if pod-network-cidr changed
kubeadm reset
## master only
etcdctl rm --recursive registry
rm -rf /var/lib/cni
rm -rf /run/flannel
rm -rf /etc/cni
ifconfig cni0 down
brctl delbr cni0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment