kubectl patch configmap

1 개요[ | ]

kubectl patch cm
kubectl patch configmap
$ kubectl create cm greet --from-literal=hello=world
configmap/greet created
$ kubectl get cm greet -ojson | jq .data
{
  "hello": "world"
}
strategic merge patch
$ kubectl patch cm greet -p '{"data":{"hello":"there"}}'
configmap/greet patched
$ kubectl get cm greet -ojson | jq .data
{
  "hello": "there"
}
$ kubectl patch cm greet -p '{"data":{"hello":"there"}}'
configmap/greet patched (no change)

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}