Kustomize resources.limits 패치

(Kustomize 리소스 패치에서 넘어옴)

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