인프런 복습 - 쿠버네티스 어나더 클래스

[Sprint2] Helm 배포하기(다양한 배포 환경)

closun 2025. 5. 31. 07:27

 

 

실습 과정 

 

 

 

 

배포 코드 확인

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를 관여시키는 게 좋지 않다. => 이유???