"Kustomize resources.limits 패치"의 두 판 사이의 차이

잔글 (봇: Kustomize patches을(를) Kustomize(으)로 분류 대체함)
 
76번째 줄: 76번째 줄:


==같이 보기==
==같이 보기==
{{z컬럼3|
* [[kustomize]]
* [[kustomize]]
* [[k8s resources]]
* [[k8s resources]]
* [[Kustomize resources]]
* [[patchesStrategicMerge]]
* [[Kustomize replicas 패치]]
* [[Kustomize replicas 패치]]
* [[patchesStrategicMerge]]
}}


==참고==
==참고==

2022년 11월 16일 (수) 14:19 기준 최신판

1 개요[ | ]

kustomize resources 패치
set_memory.yaml

2 patchesStrategicMerge ★[ | ]

2.1 별도 파일[ | ]

kustomization.yaml
patchesStrategicMerge:
- set_memory.yaml
set_memory.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-nginx
spec:
  template:
    spec:
      containers:
      - name: my-nginx
        resources:
          limits:
            memory: 512Mi

2.2 인라인[ | ]

kustomization.yaml
patchesStrategicMerge:
- |
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: my-nginx
  spec:
    template:
      spec:
        containers:
        - name: my-nginx
          resources:
            limits:
              memory: 512Mi

3 patchesJson6902[ | ]

3.1 별도 파일[ | ]

kustomization.yaml
patchesJson6902:
- target:
    kind: Deployment
    name: my-nginx
  path: patch.yaml
patch.yaml
- op: replace
  path: /spec/template/spec/containers/0/resources/limits/memory
  value: 512Mi

3.2 인라인[ | ]

kustomization.yaml
patchesJson6902:
- target:
    kind: Deployment
    name: my-nginx
  path: |
    - op: replace
      path: /spec/template/spec/containers/0/resources/limits/memory
      value: 512Mi

4 같이 보기[ | ]

5 참고[ | ]

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