본문 바로가기
공부/Open Source

[ArgoCD] multiple sources 사용하기

by haejang 2023. 11. 3.
728x90
728x90

 

 

ArgoCD를 통해 open source helm chart들을 배포할 때, values file을 text로 넣어줘야 해서 가독성이 엄청 떨어졌었다.

근데 언제부터 지원된건지 모르겠지만, 이제 multi source를 지원함으로써 external git repository로부터의 Helm value file을 사용할 수 있게 되었다....!!!

 

즉, airflow helm chart를 ArgoCD로 배포하려고 할 때, airflow helm value를 아래 레포지토리 경로에 저장되었다고 한다면

  • repository : suminhong/helm-values
  • path : airflow/test.yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: airflow
spec:
  project: honglab
  destination:
    namespace: airflow
    name: honglab-cluster
  sources:
  - repoURL: https://airflow.apache.org
    chart: airflow
    targetRevision: 1.11.0
    helm:
      releaseName: airflow
      valueFiles:
      - $values/airflow/test.yaml
  - repoURL: https://github.com/suminhong/helm-values.git
    targetRevision: main
    ref: values

 

이런식으로 작성해서 배포가 가능하다.

 

 

참조

 

끝!

 

 

728x90
728x90

댓글