Skip to content

Decommissioning the node from the cluster

  1. Cordon the node via kubectl cordon <node>
  2. Drain via kubectl drain <node> --ignore-daemonsets --delete-emptydir-data
  3. Empty the finalizer via kubectl patch node/<node> -p '{"metadata":{"finalizers":[]}}' --type=merge
  4. Finally, delete the node from the cluster via kubectl delete node <node>