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

(새 문서: ==개요== ;kubectl patch cm ;kubectl patch configmap <syntaxhighlight lang='console'> $ kubectl create cm greet --from-literal=hello=world configmap/greet created </syntaxhighlight>...)
 
 
(같은 사용자의 중간 판 5개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
{{소문자}}
;kubectl patch cm
;kubectl patch cm
;kubectl patch configmap
;kubectl patch configmap
13번째 줄: 14번째 줄:
}
}
</syntaxhighlight>
</syntaxhighlight>
{{소스헤더|strategic merge patch}}
<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>
$ kubectl patch configmap greet -p '{"data":{"hello":"there"}}'
$ kubectl patch cm greet -p '{"data":{"hello":"there"}}'
configmap/greet patched
configmap/greet patched
</syntaxhighlight>
</syntaxhighlight>
22번째 줄: 25번째 줄:
   "hello": "there"
   "hello": "there"
}
}
</syntaxhighlight>
<syntaxhighlight lang='console'>
$ kubectl patch cm greet -p '{"data":{"hello":"there"}}'
configmap/greet patched (no change)
</syntaxhighlight>
</syntaxhighlight>


==같이 보기==
==같이 보기==
{{z컬럼3|
* [[kubectl patch]]
* [[kubectl patch]]
* [[kubectl create configmap]]
* [[kubectl edit configmap]]
* [[kubectl edit configmap]]
* [[kubectl get configmap]]
* [[kubectl get configmap]]
* [[전략적 병합 패치]]
}}


[[분류: kubectl]]
[[분류: kubectl]]
[[분류: k8s ConfigMap]]

2025년 8월 22일 (금) 16:13 기준 최신판

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 }}