๐Ÿ  ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค Argo ์‚ฌ์šฉ [CD]

๊น€์„ฑ์ธยท2023๋…„ 10์›” 23์ผ
0

[DevOps] ๐ŸณDocker & Kubernetes

๋ชฉ๋ก ๋ณด๊ธฐ
57/62

์ฐธ๊ณ  ๋ธ”๋กœ๊ทธ: https://blog.naver.com/isc0304/222546201053

1. Argo ์„ค์น˜

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

2. Argo ์„œ๋น„์Šค ๋กœ๋“œ๋ฐธ๋Ÿฐ์„œ๋กœ ๋ณ€๊ฒฝ

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

3. ๋กœ๋“œ ๋ฐธ๋Ÿฐ์„œ ์™ธ๋ถ€ IP๋กœ ์ ‘์†

4. Argo ๋น„๋ฐ€๋ฒˆํ˜ธ ํ™•์ธ ํ›„ ๋กœ๊ทธ์ธ

ID : admin
PW - kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d ๋กœ ํ™•์ธ

5. ์•ฑ ์ƒ์„ฑ

Manual : ์‹ฑํฌ ๋ฐฉ์‹ ์ˆ˜๋™
Automatic: Git์— ์„ค์ •๋œ ๋งค๋‹ˆํŽ˜์ŠคํŠธ ๋‚ด์šฉ๊ณผ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์ƒํƒœ๊ฐ€ ๋‹ค๋ฅด๊ฑฐ๋‚˜ ์ •์ƒ๋™์ž‘ ํ•˜์ง€ ์•Š์œผ๋ฉด ์ž๋™์œผ๋กœ ์žฌ ๋ฐฐํฌ/๊ตฌ์„ฑ ํ•จ.

์ฟ ๋ฒ„๋„คํ‹ฐ์Šค API ์„œ๋ฒ„ URL ์ •๋ณด ์ž…๋ ฅ

6. ์ƒ์„ฑ ํ›„ Sync


0๊ฐœ์˜ ๋Œ“๊ธ€