hardkubectl
Mark a node as unschedulable using a JSON patch without draining it
command
kubectl patch node NODE_NAME -p '{"spec":{"unschedulable":true}}'also accepted
kubectl patch nodecommand
kubectl patch node NODE_NAME -p '{"spec":{"unschedulable":true}}'also accepted
kubectl patch nodePart of the Kubernetes CLI (kubectl) — Nodes category.
| Flag | Purpose |
|---|---|
-p | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →