helm deployment 전 환경 구축
- helm 설치
- helm artifact에서 원하는 repository를 선택하여 자신의 helm 환경에 다운로드
helm repo add [name] [url]
- k8s cluster에 배포에 필요한 serveice와 pod 생성에 대한 요청까지만 보내짐
helm install [name] [chart] [flags]
- k8s에서는 service와 pod를 생성하며 이 때 필요한 container image는 dockerhub에서 가져옴
(helm chart 안에 dockerhub까지 있는 건 아님)
helm 차트 조회
helm search repo [keyword]
helm search hub [keyword]
helm repository 관리
- url 이용하여 추가 :
helm repo add [name] [url]
- 압축파일로 추가 :
helm pull
helm repo list
helm repo update
helm repo remove [name]
helm deployment 관리
- url 이용하여 배포 :
helm install [name] [chart] [flags]
- 압축파일 이용하여 배포 :
helm install [name] [압축파일 위치]
- 수정한 파일을 배포 :
helm install [name] [repository]
helm list
helm status
helm uninstall
helm chart 구성
- Mandatory
- templates
- deployment.yaml
- service.yaml
- values.yaml : templates에 변수처리된 부분의 설정 값
- Chart.yaml : chart에 대한 정보
- Optional