실습 2탄 = 8/11
1
https://github.com/brentley/ecsdemo-nodejs
리포지토리 포크함
2
클러스터 context로 argocd 연결
CONTEXT_NAME=`kubectl config view -o jsonpath='{.current-context}'`
argocd cluster add $CONTEXT_NAME
3
ecs 데모 네임 스페이스 만들기?
kubectl create namespace ecsdemo-nodejs
namespace/ecsdemo-nodejs created
4
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
5
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
5
배포
argocd app sync ecsdemo-nodejs
6
2분후 Synced확인
7
아르고 CD 웹 접속 확인?
ArgoCD UI에 접속
echo $ARGOCD_SERVER
LB URL로 접속
admin
echo $ARGO_PWD.
https://brunch.co.kr/@topasvga/1700
https://brunch.co.kr/@topasvga/1882
https://brunch.co.kr/@topasvga/1679
감사합니다.