공부하기싫어
article thumbnail
Published 2023. 7. 17. 08:06
argoCD pipeline demo Kubernetes/CICD

간단한 nginx pod 를 띄우는 작업을 진행해볼 예정

pod.yaml, kustomizaiton.yaml 이 저장될 public github repository 사용

 

github repository

 

# pod.yaml
apiVersion: v1
kind: Pod
metadata:
  name: my-app
  namespace: test
spec:
  containers:
    - name: nginx
      image: nginx
      ports:
        - containerPort: 80
# kustomization.yaml
resources:
  - pod.yaml
  
# 위 resources sector 만 먼저 띄워서 sync 후 아래 image sector 추가
images:
  - name: nginx
    newName: nginx
    newTag: 1.23.1

 

new app 으로 app 생성함

git repository 추적하게 하고 branch main 으로 변경

auto sync 와 health check 활성화

 

sync 확인
변경 확인

kustomiztion.yaml 파일 변경 사항을 정상적으로 동기화함을 확인