mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
reenable patch serverside using strategic-merge-patch
This commit is contained in:
@@ -21,6 +21,9 @@ $ kubectl update -f pod.json
|
||||
|
||||
// Update a pod based on the JSON passed into stdin.
|
||||
$ cat pod.json | kubectl update -f -
|
||||
|
||||
// Partially update a node using strategic merge patch
|
||||
kubectl --api-version=v1 update node k8s-node-1 --patch='{"spec":{"unschedulable":true}}'
|
||||
```
|
||||
|
||||
### Options
|
||||
@@ -28,6 +31,7 @@ $ cat pod.json | kubectl update -f -
|
||||
```
|
||||
-f, --filename=[]: Filename, directory, or URL to file to use to update the resource.
|
||||
-h, --help=false: help for update
|
||||
--patch="": A JSON document to override the existing resource. The resource is downloaded, patched with the JSON, then updated.
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
@@ -62,6 +66,6 @@ $ cat pod.json | kubectl update -f -
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-05-29 01:11:24.431126385 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-06-18 19:03:00.935576604 +0000 UTC
|
||||
|
||||
[]()
|
||||
|
Reference in New Issue
Block a user