발표 자료

221208 판교소모임.pdf

참고 문서

kubectx

https://github.com/ahmetb/kubectx

ArgoCD

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

ArgoCD (on EKS Workshop)

https://www.eksworkshop.com/intermediate/290_argocd/

Kustomize

https://kustomize.io/

https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/

ArgoCD

ArgoCD 설치

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

# kubens 를 통해 context 의 특정 namespace 를 고정
kubens argocd # <https://github.com/ahmetb/kubectx>

아래 명령어부터는 kubens 를 적용하였음. 적용하지 않고 사용하는 경우 명령어마다 -n argocd 를 추가하여 사용

ArgoCD CLI 설치

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

brew install argocd

ArgoCD 서비스 노출

kubectl edit svc argocd-server
# Local Cluster 기준 (그 외 환경에는 상황에 맞게 Service 구성)
# 1. ports 의 http 설정 최하단에 nodePort: 30000 추가
# 2. type: ClusterIP -> NodePort

로그인 비밀번호 추출

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