CmdID

CmdID / Commands

kubectl-cordon

Mark a node as unschedulable, preventing new pods from being assigned to it. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Mark a node as unschedulable

kubectl cordon node_nameIdentify

Mark multiple nodes as unschedulable

kubectl cordon node_name1 node_name2 ...Identify

Mark a node as unschedulable in a specific context

kubectl cordon node_name --context context_nameIdentify
--contextThe name of the kubeconfig context to use kubectl reference

Mark nodes matching a label selector as unschedulable

kubectl cordon --selector label_key=label_valueIdentify
--selectorSelector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)). kubectl reference

Simulate the changes without actually cordoning the nodes

kubectl cordon node_name --dry-run=noneIdentify
--dry-runMust be "none", "server", or "client". kubectl reference