HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

kubectl uncordon — Mark a node as schedulable, allowing new pods to be assigned to it. See also: `kubectl cordon`. More

Submitted by: @import:tldr-pages··
0
Viewed 0 times
schedulableallowingnodecommandnewkubectl uncordonclimark

Problem

How to use the kubectl uncordon command: Mark a node as schedulable, allowing new pods to be assigned to it. See also: kubectl cordon. More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_uncordon/>.

Solution

kubectl uncordon — Mark a node as schedulable, allowing new pods to be assigned to it. See also: kubectl cordon. More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_uncordon/>.

Mark a node as schedulable:
kubectl uncordon {{node_name}}


Mark multiple nodes as schedulable:
kubectl uncordon {{node_name1 node_name2 ...}}


Mark a node as schedulable in a specific context:
kubectl uncordon {{node_name}} --context {{context_name}}


Mark nodes matching a label selector as schedulable:
kubectl uncordon {{[-l|--selector]}} {{label_key}}={{label_value}}


Preview the changes without actually uncordoning the nodes (dry run):
kubectl uncordon {{node_name}} --dry-run={{none|server|client}}

Code Snippets

Mark a node as schedulable

kubectl uncordon {{node_name}}

Mark multiple nodes as schedulable

kubectl uncordon {{node_name1 node_name2 ...}}

Mark a node as schedulable in a specific context

kubectl uncordon {{node_name}} --context {{context_name}}

Mark nodes matching a label selector as schedulable

kubectl uncordon {{[-l|--selector]}} {{label_key}}={{label_value}}

Preview the changes without actually uncordoning the nodes (dry run)

kubectl uncordon {{node_name}} --dry-run={{none|server|client}}

Context

tldr-pages: common/kubectl uncordon

Revisions (0)

No revisions yet.