클라우드/AWS
[AWS] EKS 클러스터 생성 및 ArgoCD 설치하는 방법
cloudgarden
2024. 12. 7. 19:00
1. EKS 클러스터 생성
Argo CD 설치를 위해서 클러스터 생성
eksctl create cluster \
--name EKS \
--with-oidc \
--zones ap-northeast-2a,ap-northeast-2c \
--nodegroup-name NG \
--nodes 1 \
--node-type t3.medium \
--node-volume-size=20 \
--managed \
-> EKS라는 이름을 가진 클러스터 / t3.medium 1개 생성
Node Group NG로 생성
2. ArgoCD 설치
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
3. LoadBalancer 생성
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
4. ArgoCD 초기 관리자 비밀번호 확인 및 로그인
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
http://<LoadBalancer DNS 이름>
LoadBalancer DNS 주소를 치고 들어가면 argo 화면이 나와야 함