Deleting a Node
The Kube-OVN-Controller running on a node periodically reconnects to the ovn-sb, but the chassis still registers again. As a result, some network configurations are residual, resources are wasted, and potential rule conflicts may occur. Therefore, when deleting a node from Kubernetes, perform the following steps to ensure that network information can be properly deleted.
- Drain a node.
1kubectl drain <node-name> --ignore-daemonsets --force
- Log in to the node and stop kubelet and Docker to stop the corresponding DaemonSet.
1systemctl stop kubelet && systemctl stop docker
- Delete the node from the master nodes.
1kubectl delete node <node-name>
- Check whether the node is deleted from the ovn-sb.
1kubectl ko sbctl show
- If any chassis corresponding to the hostname still exists, manually delete it.
1kubectl ko sbctl chassis-del <chassis-uuid>
Parent topic: O&M Operations