Kustomize 헬름 차트 사용

1 개요[ | ]

kustomize helm chart 사용
kustomize 헬름 차트 사용
kustomize helmCharts
kustomization helmCharts

2 예시 1[ | ]

root@wsl:~/temp# ll
total 12
drwxr-xr-x  2 root root 4096 Nov 16 14:01 ./
drwx------ 32 root root 4096 Nov 16 14:00 ../
-rw-r--r--  1 root root  161 Nov 16 14:00 kustomization.yaml
root@wsl:~/temp# cat kustomization.yaml
helmCharts:
- name: prometheus
  repo: https://prometheus-community.github.io/helm-charts
  version: 14.3.0
  releaseName: my-prometheus
  namespace: monitoring
root@wsl:~/temp# kubectl kustomize --enable-helm . -o rendered.yaml
root@wsl:~/temp# ll
total 48
drwxr-xr-x  3 root root  4096 Nov 16 14:01 ./
drwx------ 32 root root  4096 Nov 16 14:00 ../
drwxr-xr-x  4 root root  4096 Nov 16 14:01 charts/
-rw-r--r--  1 root root   161 Nov 16 14:00 kustomization.yaml
-rw-r--r--  1 root root 30098 Nov 16 14:01 rendered.yaml
root@wsl:~/temp# cat rendered.yaml | head
apiVersion: v1
kind: ServiceAccount
metadata:
  labels:
    app: prometheus
    chart: prometheus-14.3.0
    component: alertmanager
    heritage: Helm
    release: my-prometheus
  name: my-prometheus-alertmanager

3 예시 2[ | ]

root@wsl:~/temp# ll
total 12
drwxr-xr-x  2 root root 4096 Nov 16 14:02 ./
drwx------ 32 root root 4096 Nov 16 14:02 ../
-rw-r--r--  1 root root  255 Nov 16 14:02 kustomization.yaml
root@wsl:~/temp# cat kustomization.yaml
helmCharts:
- name: minecraft
  includeCRDs: false
  valuesInline:
    minecraftServer:
      eula: true
      difficulty: hard
      rcon:
        enabled: true
  releaseName: moria
  version: 3.1.3
  repo: https://itzg.github.io/minecraft-server-charts
root@wsl:~/temp# kubectl kustomize --enable-helm . -o rendered.yaml
root@wsl:~/temp# ll
total 20
drwxr-xr-x  3 root root 4096 Nov 16 14:03 ./
drwx------ 32 root root 4096 Nov 16 14:02 ../
drwxr-xr-x  4 root root 4096 Nov 16 14:03 charts/
-rw-r--r--  1 root root  255 Nov 16 14:02 kustomization.yaml
-rw-r--r--  1 root root 4064 Nov 16 14:03 rendered.yaml
root@wsl:~/temp# cat rendered.yaml | head
apiVersion: v1
data:
  rcon-password: Q0hBTkdFTUUh
kind: Secret
metadata:
  labels:
    app: moria-minecraft
    chart: minecraft-3.1.3
    heritage: Helm
    release: moria

4 같이 보기[ | ]

5 참고[ | ]

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