이세개발
article thumbnail

 

argoCD를 사용해서 git에 push를 하면 자동으로 k8s 클러스터에 배포가 되도록 구성

 

 

 

네임스페이스 생성 및 argoCD yaml 배포

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

argocd cli

sudo curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
chmod +x /usr/local/bin/argocd

 

nodeport 설정

kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "NodePort"}}'

 

argocd svc 확인

kubectl describe svc argocd-server -n argocd

노드포트 말고 여러 방식으로 외부 접속이 가능하지만 편의상 노드포트를 사용했고 여기서는 32646포트가 할당되었다.

 

비밀번호 확인

kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo

username : admin
비밀번호는 위에 확인한 내용으로 로그인이 가능하다

 

 

 

 

 

https://argo-cd.readthedocs.io/en/stable/

 

Argo CD - Declarative GitOps CD for Kubernetes

Overview What Is Argo CD? Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Why Argo CD? Application definitions, configurations, and environments should be declarative and version controlled. Application deployment and lifecycle ma

argo-cd.readthedocs.io

 

profile

이세개발

@print(name)

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!