반응형
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




반응형
'CICD' 카테고리의 다른 글
| ArgoCD 설치 (0) | 2025.05.25 |
|---|---|
| Jenkins 설치 방법 (0) | 2023.09.05 |