mirror of https://github.com/k3s-io/k3s
Fix a deprecated 'replace' command with a 'patch' command.
parent
b9c7cf43b2
commit
6827900a8d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue