From 6827900a8d271ddb412d0a36f0f491c2f58faa32 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Fri, 16 Oct 2015 14:34:37 -0700 Subject: [PATCH] Fix a deprecated 'replace' command with a 'patch' command. --- docs/admin/node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,