CICD
argoCD cluster, git 연동
babbeolicoding
2025. 5. 26. 09:25
Cluster 연동
# argocd 명령어가 없을 시 설치
wget https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd
# argocd 로그인
argocd login nodeip:node_port
ex) argocd login 172.29.253.189:31765
# 클러스터 추가
kubectl config get-contexts
argocd cluster add <Context>
ex) argocd cluster add kubernetes-admin@kubernetes
Git 연결
argocd repo add {git 주소} \
--username {user} \
--password {git-token}
argocd app create nginx \
--repo {git 주소} \
--path nginx \
--dest-server https://172.18.151.75:6443 \
--dest-namespace nginx \
--sync-policy automated