mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 02:07:38 +00:00
Merge pull request #26581 from caesarxuchao/continue-25746
Automatic merge from submit-queue fix kubectl patch example Based on https://github.com/kubernetes/kubernetes/pull/25746, fix the kubectl example. cc @tobstarr
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user