<aside> 💡 사전 준비: ArgoCD가 설치되어있어야 함

</aside>

gcloud Cli 설치

Google Cloud CLI 설치 매뉴얼 을 참고하여 os에 따라 설치

Cluster 인증

gcloud container clusters get-credentials <cluster name>

추가할 argocd가 설치된 클러스터로 컨텍스트 변경

kubectl config use-context mlops_deploy

cluster 추가

로그인

argocd login <target argo cd url(http/https 빼고 입력)>

쿠버네티스 컨텍스트 확인

kubectl config get-contexts

cluster 추가

argocd cluster add <CONTEXT>

Test

argocd app create guestbook \
        --repo <https://github.com/argoproj/argocd-example-apps.git> \
        --path guestbook \
        --dest-server <cluster 이름> \
        --dest-namespace default \
				--project default