Last active
October 10, 2023 13:23
-
-
Save jarulsamy/c36660f965fcfa64f3a5eba1b50ec624 to your computer and use it in GitHub Desktop.
Cleanup Calico
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
#!/usr/bin/env bash | |
set -x | |
ip route flush proto bird | |
ip link list | grep cali | awk '{print $2}' | cut -c 1-15 | xargs -I {} ip link delete {} | |
rm -rf /etc/cni/net.d/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment