1. ArgoCD 설치 및 Application 생성

ArgoCD 설치

kubectl create namespace argocd
kubectl apply -n argocd-f <https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml>

Application 배포

kubectl apply -f k8s/argocd/application.yaml

2. ArgoCD UI 접속

kubectl port-forward svc/argocd-server -n argocd 8080:443

브라우저 접속:

<http://localhost:8080>

3. 로그인

kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}"

4. GitOps 구조

GitHub (gitops-repo)
        ↓
ArgoCD (자동 감지)
        ↓
Kubernetes (자동 배포)