Fix a deprecated 'replace' command with a 'patch' command.
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user