실습 과정
배포 코드 확인
https://github.com/k8s-1pro/kubernetes-anotherclass-sprint2/tree/main/2223
실습 후 정리
# helm 조회
helm list -n anotherclass-222
# helm 삭제
helm uninstall -n anotherclass-222-dev api-tester-2223
helm uninstall -n anotherclass-222-qa api-tester-2223
helm uninstall -n anotherclass-222-prod api-tester-2223
# namespace 삭제
kubectl delete ns anotherclass-222-dev
kubectl delete ns anotherclass-222-qa
kubectl delete ns anotherclass-222-prod
Jenkinsfile 확인
▲ 이 부분만 다름
▲ 변수들은 1차적으로 values.yaml 파일에 있는 값이 들어가고, -f 옵션을 사용하면 이 파일에 있는 내용이 overlay됨
helm 배포에는 namespace를 관여시키는 게 좋지 않다. => 이유???
'인프런 복습 - 쿠버네티스 어나더 클래스' 카테고리의 다른 글
[Sprint2] ArgoCD 설치 및 Application 생성해보기 (1) | 2025.06.02 |
---|---|
[Sprint2] 배포 파이프라인 구축 후 마주하게 되는 고민들 (1) | 2025.05.31 |
[Sprint2] Helm vs Kustomize + Kustomize 실습(다양한 배포환경) (0) | 2025.05.30 |
[Sprint2] Helm vs Kustomize + Helm 실습 (0) | 2025.05.29 |
[Sprint2] Blue/Green 배포 스크립트로 자동화 (Step 4) (0) | 2025.05.22 |