diff --git a/docs/admin/node.md b/docs/admin/node.md index cc80bdb9c7e..55df25bf28f 100644 --- a/docs/admin/node.md +++ b/docs/admin/node.md @@ -211,7 +211,7 @@ preparatory step before a node reboot, etc. For example, to mark a node unschedulable, run this command: ```sh -kubectl replace nodes 10.1.2.3 --patch='{"apiVersion": "v1", "unschedulable": true}' +kubectl patch nodes $NODENAME -p '{"spec": {"unschedulable": true}}' ``` Note that pods which are created by a daemonSet controller bypass the Kubernetes scheduler,