brunch

You can make anything
by writing

C.S.Lewis

by Master Seo Jul 09. 2021

EKS 2탄-7. AWS EKS- ArgoCD

실습 2탄 = 7/11

<1> ArgoCD 구성요소 3가지

<2> ArgoCD 설치



<1> ArgoCD 구성요소 3가지


1

API 서버 - web, cli , cd/cd api 제공


2

레파지토리 서버


3

애플리케이션 컨트롤러 ?

제어, 모니터링하는 쿠버네티스 컨트롤러




<2> ArgoCD 설치 



1

네임스페이스 생성 ?

kubectl create namespace argocd


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



2

ArgoCD CLI 설치 ?


VERSION=$(curl --silent "https://api.github.com/repos/argoproj/argo-cd/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/')


sudo curl --silent --location -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/download/$VERSION/argocd-linux-amd64


sudo chmod +x /usr/local/bin/argocd



3

테스트를 위해 ArgoCD  외부에서 접속 가능하도록 변경


Load Balancer 이용 ?

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

service/argocd-server patched



4

LB생성

export ARGOCD_SERVER=`kubectl get svc argocd-server -n argocd -o json | jq --raw-output .status.loadBalancer.ingress[0].hostname`



5

암호는 ArgoCD API 서버의 포드 이름?

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



6

admin으로 로그인

argocd login $ARGOCD_SERVER --username admin --password $ARGO_PWD --insecure

'admin:login' logged in successfully

Context 'a110cd5xxxxxxxd05-1965148026.us-west-2.elb.amazonaws.com' updated



7

웹으로 접속 확인?

$ echo $ARGOCD_SERVER

a110cd5059da7xxxxx05-1965148026.us-west-2.elb.amazonaws.com



다음과정


https://brunch.co.kr/@topasvga/1699





<10>   AWS EKS 실습 2탄


https://brunch.co.kr/@topasvga/1882




https://brunch.co.kr/@topasvga/1679


감사합니다.


매거진의 이전글 EKS 2탄-6. AWS EKS- 부하테스트와 모니터링

작품 선택

키워드 선택 0 / 3 0

댓글여부

afliean
브런치는 최신 브라우저에 최적화 되어있습니다. IE chrome safari