Uninstalling Kube-OVN 1.2.1
Perform the following operations with caution based on your requirements.
- Download the uninstallation script from the primary node.
1wget https://raw.githubusercontent.com/alauda/kube-ovn/release-1.2/dist/images/cleanup.sh - Run the uninstallation script on the primary node.
1bash cleanup.sh - Run the following commands on the primary node and compute nodes to clear the configuration saved in OVSDB and Open vSwitch:
1 2 3 4 5 6 7 8
rm -rf /var/run/openvswitch rm -rf /var/run/ovn rm -rf /etc/origin/openvswitch/ rm -rf /etc/origin/ovn/ rm -rf /etc/cni/net.d/00-kube-ovn.conflist rm -rf /etc/cni/net.d/01-kube-ovn.conflist rm -rf /var/log/openvswitch rm -rf /var/log/ovn
- Restart all the nodes to ensure that the corresponding NIC information and iptables/ipset rules are cleared.
Parent topic: Deploying Kube-OVN