Kubernetes - Kustomize

choko's avatar
Jun 29, 2024
Kubernetes - Kustomize
 

Kustomize

  •  kustomization 파일을 통해 쿠버네티스 오브젝트를 사용자가 원하는대로 변경할 수 있다.
  • 여러 yaml 파일을 한번에 apply 시킬 수 있다.
  • kustomization.yaml에 적용할 yaml 파일 및 속성 명시
  • 사용 명령어(2가지)
      1. kubectl kustomize <kustomization_directory>
      1. kubectl apply --kustomize <kustomization_directory>
 
 
ex) kustomize 명령어로 prometheus 올리기
 
 
notion image
 
  • kustomization.yaml
resources: - prometheus.yaml - configmap.yaml - kube-state.yaml - node-exporter.yaml
  • 적용
    • kubectl apply --kustomize ./prometheus/
 
Share article

Tom의 TIL 정리방