Helm & ArgoCD Tests for CRDs

CI/CDKubernetes

Helm Test

ArgoCD Test

 

Notes Regarding ArgoCD

 

 

ArgocD sync과정 순서를 phase라고 부르며 3단계(pre sync, sync, post sync)로 진행 됨.
  • applicationset은 phase,waves 기능 존재하지 않음.. flux cd는 가능하다고 함.

 

presync 란 argocd sync wave 전 작업들을 진행 함.
metadata:
  name: pre-sync
  annotations:
    argocd.argoproj.io/hook: PreSync ## annotation 추가

 

sync waves 란
  • 후크와 리소스는 기본적으로 웨이브 0에 할당되며. 
  • 웨이브는 음수일 수 있으므로 다른 모든 리소스보다 먼저 실행되는 웨이브를 만들 수 있음.
  • presync, postsync에는 wave를 줄 수 없음.
metadata:
  annotations:
    argocd.argoproj.io/sync-wave: "5"

 

posysync 란 sync 작업 이후 진행해야 함.
  • slack notification 등도 있지만, platform 관점에서 test pod 배포 하는 것도 postsync로 가능 함
metadata:
  name: post-sync
  annotations:
    argocd.argoproj.io/hook: PostSync # presync 지정

 

 

참조:

https://argo-cd.readthedocs.io/en/stable/user-guide/resource_hooks/

 

 

Regarding ApplicationSet Pattern

Gitops with Argo CD & Kyma, Multi-cluster manageme... - SAP Community

 

해당 아키텍처는 argocd 에서 env-application 을 생성하여 github 구조(디렉토리) 가 변경 될 때 마다 자동으로 Service Application을 cluster에 배포해주고 삭제해주는 아키텍처임.

 

gitops 라는 git repo 에서 appset-gernerator-envs.yaml를 최상위에서 만들고 관리 함. 해당 아키텍처 테스트 해 보았을 시 generator 라는 기능들을 사용하여 git repo로만

 

App of Apps

Tests on https://github.com/Waji-97/ArgoCD-Test

← back