LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kubectl-cordon

marks a node as unschedulable

TLDR

Cordon node
$ kubectl cordon [node-name]
copy
Cordon multiple nodes
$ kubectl cordon [node1] [node2]
copy
Cordon with selector
$ kubectl cordon -l [key=value]
copy
Dry run
$ kubectl cordon [node-name] --dry-run=client
copy

SYNOPSIS

kubectl cordon [options] node

DESCRIPTION

kubectl cordon marks one or more Kubernetes nodes as unschedulable by setting the `node.kubernetes.io/unschedulable` taint on the node object. Once cordoned, the scheduler will not place any new pods on the node, but existing pods already running on it continue to operate normally and are not affected.Cordoning is typically the first step in a node maintenance workflow, followed by `kubectl drain` to gracefully evict the running pods. It is also useful for isolating a node that is exhibiting problems -- such as high resource usage or hardware errors -- while you investigate, without disrupting workloads already running there.To return a cordoned node to normal scheduling, use `kubectl uncordon`. The cordon state can be verified by checking the node's status with `kubectl get nodes`, where cordoned nodes display a `SchedulingDisabled` status.

PARAMETERS

NODE

Node name to cordon.
-l SELECTOR
Label selector.
--dry-run MODE
Simulate operation.
--help
Display help information.

INSTALL

sudo apt install kubectl
copy
sudo pacman -S kubectl
copy
sudo apk add kubectl
copy
brew install kubectl
copy
nix profile install nixpkgs#kubectl
copy

CAVEATS

Subcommand of kubectl. Use with drain for maintenance. Uncordon to restore.

HISTORY

kubectl cordon provides node scheduling control for Kubernetes cluster maintenance.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid