fix kubectl patch example

This commit is contained in:
Chao Xu
2016-05-31 11:45:12 -07:00
parent 9e31175795
commit 216649b822
4 changed files with 5 additions and 5 deletions

View File

@@ -107,6 +107,6 @@ example: |2-
kubectl patch pod valid-pod -p '{"spec":{"containers":[{"name":"kubernetes-serve-hostname","image":"new image"}]}}'
# 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"}]'
kubectl patch pod valid-pod --type='json' -p='[{"op": "replace", "path": "/spec/containers/0/image", "value":"new image"}]'
see_also:
- kubectl