Rate This Document
Findability
Accuracy
Completeness
Readability

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.

  1. Drain a node.
    1
    kubectl drain <node-name> --ignore-daemonsets --force
    
  2. Log in to the node and stop kubelet and Docker to stop the corresponding DaemonSet.
    1
    systemctl stop kubelet && systemctl stop docker
    
  3. Delete the node from the master nodes.
    1
    kubectl delete node <node-name>
    
  4. Check whether the node is deleted from the ovn-sb.
    1
    kubectl ko sbctl show
    
  5. If any chassis corresponding to the hostname still exists, manually delete it.
    1
    kubectl ko sbctl chassis-del <chassis-uuid>