brunch

You can make anything
by writing

C.S.Lewis

by Master Seo Jul 09. 2021

EKS 2탄-8. EKS- ArgoCD로 배포-8/11

실습 2탄 = 8/11

<1>  EKS-ArgoCD로 app 배포

<2>  AWS EKS 실습 2탄



<1>  EKS-ArgoCD로 app 배포


1

code

https://github.com/brentley/ecsdemo-nodejs


리포지토리 포크함

https://github.com/topasvga1/ecsdemo-nodejs



2

# 서버 로그인 , 터미널1

watch -d kubectl get ns,deploy,svc,rs,pod



3

ecs 데모  네임 스페이스 만들기?


kubectl create namespace ecsdemo-nodejs

namespace/ecsdemo-nodejs created


# 서버 로그인 , 터미널2

kubens

kubens ecsdemo-nodejs



4

# 클러스터 context로  argocd  연결


CONTEXT_NAME=`kubectl config view -o jsonpath='{.current-context}'`

argocd cluster add $CONTEXT_NAME




5

argocd app create ecsdemo-nodejs --repo https://github.com/GITHUB_USERNAME/ecsdemo-nodejs.git --path kubernetes --dest-server https://kubernetes.default.svc --dest-namespace ecsdemo-nodejs

// GITHUB_USERNAME 수정


argocd app create ecsdemo-nodejs --repo https://github.com/topasvga1/ecsdemo-nodejs.git --path kubernetes --dest-server https://kubernetes.default.svc --dest-namespace ecsdemo-nodejs

application 'ecsdemo-nodejs' created



6

app 상태 확인?


argocd app get ecsdemo-nodejs


Name:               ecsdemo-nodejs

Project:            default

Server:             https://kubernetes.default.svc

Namespace:          ecsdemo-nodejs

URL:                https://a110cd5059da74558a4539acf3ba6d05-1965148026.us-west-2.elb.amazonaws.com/applications/ecsdemo-nodejs

Repo:               https://github.com/topasvga1/ecsdemo-nodejs.git

Target:             

Path:               kubernetes

SyncWindow:         Sync Allowed

Sync Policy:        <none>

Sync Status:        OutOfSync from  (c61db33)

Health Status:      Missing


GROUP  KIND        NAMESPACE       NAME            STATUS     HEALTH   HOOK  MESSAGE

       Service     ecsdemo-nodejs  ecsdemo-nodejs  OutOfSync  Missing        

apps   Deployment  default         ecsdemo-nodejs  OutOfSync  Missing        



#  FATA[0000] rpc error: code = PermissionDenied desc = permission denied




7

배포

argocd app sync ecsdemo-nodejs



8

2분후  Synced확인





9

아르고 CD 웹 접속 확인?



ArgoCD UI에 접속

echo $ARGOCD_SERVER



10

LB URL로 접속

admin

echo $ARGO_PWD.










11

#  AWS EKS 실습 2탄


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


12

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



다음과정


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



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