Add "remove" example for kubectl patch (#4042)

This commit is contained in:
Jorge Bianquetti 2017-06-21 00:47:42 +02:00 committed by Andrew Chen
parent 63687c5ace
commit bed2527af1
1 changed files with 3 additions and 0 deletions

View File

@ -168,6 +168,9 @@ $ kubectl patch pod valid-pod -p '{"spec":{"containers":[{"name":"kubernetes-ser
# Update a container's image using a json patch with positional arrays
$ kubectl patch pod valid-pod --type='json' -p='[{"op": "replace", "path": "/spec/containers/0/image", "value":"new image"}]'
# Disable a deployment livenessProbe using a json patch with positional arrays
$ kubectl patch deployment valid-deployment --type json -p='[{"op": "remove", "path": "/spec/template/spec/containers/0/livenessProbe"}]'
```
## Editing Resources