반응형
Install
https://helm.sh/docs/intro/install/
https://github.com/helm/helm/releases
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
설치
Public Repository
helm repo add bitnami https://charts.bitnami.com/bitnami
저장소 추가
helm repo remove bitnami
저장소 삭제
helm repo update
저장소 목록 업데이트
helm search repo bitnami
차트 리스트 검색
helm install mysqlname bitnami/mysql -n namespace
helm chart 배포
helm uninstall mysqlname -n namespace
helm 배포 삭제
helm list -n namespace
배포된 helm 리스트 확인
helm status mysqlname -n namespace
상태 확인
Private Repository
helm create chart-name
helm chart 생성
Chart.yaml
- helm chart의 meta 정보
templates
- deployment, service 등 배포에 필요한 리소스를 정의
values.yaml
- templates 파일에 go template에 적용될 변수 정의
helm package chart-name
# Successfully packaged chart and saved it to: /path/chart-name-0.1.0.tgz
helm chart를 패키지 형태로 압축
helm repo index ./
해당 폴더(./)를 레파지토리 형태로 만들어주며 index.yaml 파일을 만들어 인덱싱한다.
레파지토리로 생성한 폴더를 깃헙과 같은 저장소에 푸시한다.
# example
https://raw.githubusercontent.com/zeroest/helm-charts/main/index.yaml
저장소에서 index.yaml 파일의 raw 형태 파일 주소를 저장한다.
helm repo add zcharts \
--username $GITHUB_LOGIN_ID \
--password $PERSONAL_ACCESS_TOKEN \
https://raw.githubusercontent.com/zeroest/helm-charts/main/
위 raw index 파일 주소에서 index.yaml을 제거한 경로로 repo를 추가한다.
프라이빗 레파지일 경우 위와 같이 username, password 옵션을 추가하여 적용한다.
password에는 Personal access token을 발급 받아 해당 토큰을 입력하도록 한다.
반응형
'Kubernetes' 카테고리의 다른 글
AWS load balancer controller on Fargate - CrashLoopBackOff (0) | 2021.12.28 |
---|---|
Docker network (0) | 2021.12.20 |
Ingress - Nginx (0) | 2021.12.18 |
Taints & Tolerations (0) | 2021.12.13 |
Fargate (0) | 2021.12.11 |