Kubernetes에 ArgoCD 배포

환경

root@k8s-master01:~# kubectl get nodes
NAME           STATUS   ROLES                  AGE   VERSION
k8s-master01   Ready    control-plane,master   26d   v1.20.7
k8s-master02   Ready    control-plane,master   26d   v1.20.7
k8s-master03   Ready    control-plane,master   26d   v1.20.7
k8s-worker01   Ready    <none>                 26d   v1.20.7
k8s-worker02   Ready    <none>                 19d   v1.20.7

ArgoCD 배포

  • argocd 네임스페이스 생성
kubectl create namespace argocd
  • argocd 배포
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

ArgoCD 접근

  • Web 접근을 위해 svc 타입 변경
kubectl -n argocd edit svc argocd-server
 ClusterIP -> NodePort
  • Web Passwd 확인
root@k8s-master01:~# kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d

C4MDJqQaXZT1Kd3K

 

ArgoCD - GitHub 연동

  • 설정 - Repositories - [CONNECT REPO USING HTTPS] - github 정보입력

  • 연결 확인

ArgoCD - 애플리케이션 배포

  • ArgoCD - Applications 탭 - [NEW APP] 생성

 

 

 

 

  • App 상태확인

ArgoCD 테스트

  • deployment 확인

  • deployment 삭제

  • Sync 확인

'DevOps' 카테고리의 다른 글

Service Mesh - Linkerd  (0) 2023.07.14
Harbor_Registry  (1) 2022.12.28
소프트웨어 스택  (0) 2022.11.08
[GateKeeper] K8s 정책제어  (0) 2022.10.13

+ Recent posts