Command

Kubernetes Mark Node Unschedulable Command

The Kubernetes command to mark node unschedulable is kubectl cordon my-node.

Quick Answer

Command
kubectl cordon my-node
KubernetesCommand

Mark Node Unschedulable

Type this command
kubectl cordon my-node

Cordons a node so new pods are not scheduled on it.

Learn More

How to mark node unschedulable in Kubernetes

  1. Open the terminal or command interface for Kubernetes.
  2. Type kubectl cordon my-node, replace any placeholders, and run it.

Kubernetes Mark Node Unschedulable Command

Run kubectl cordon my-node.

Related Commands

Frequently asked questions

What is the Kubernetes command to mark node unschedulable?

Run kubectl cordon my-node.

Where do I type this Kubernetes command?

Type it in the terminal or command-line interface used by Kubernetes.

Does this Kubernetes command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify