concept
Drain cordon and disruption
Cordon marks a node unschedulable for ordinary scheduler placement. Existing Pods are not evicted by cordon alone. Some workloads, including DaemonSets, can tolerate the unschedulable taint; directly binding a Pod can also bypass the usual scheduler placement decision. Uncordon permits ordinary scheduling again, but does not guarantee that the node is healthy. Use explicit context and node identity in any approved lab.
Formal Syntax & Structure
kubernetes syntaxkubernetes
kubectl drain <node> --ignore-daemonsetsWorking Example
Example Snippetkubernetes
# Illustration only; use an authorized disposable contextkubectl --context lab-maintenance get pods -A --field-selector spec.nodeName=worker-akubectl --context lab-maintenance cordon worker-akubectl --context lab-maintenance drain worker-a --ignore-daemonsets --timeout=120s