"Kubectl patch configmap"의 두 판 사이의 차이

14번째 줄: 14번째 줄:
}
}
</syntaxhighlight>
</syntaxhighlight>
{{소스헤더|strategic merge patch}}
<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>
$ kubectl patch configmap greet -p '{"data":{"hello":"there"}}'
$ kubectl patch configmap greet -p '{"data":{"hello":"there"}}'

2025년 8월 22일 (금) 16:04 판

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 configmap greet -p '{"data":{"hello":"there"}}'
configmap/greet patched
$ kubectl get cm greet -ojson | jq .data
{
  "hello": "there"
}

2 같이 보기

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