Search

Kubernetes Helm Repo S3

참고
helm create my-nginx
Shell
복사
kubectl create namespace helm-space
Shell
복사
helm install my-nginx-release my-nginx/ --namespace helm-space
Shell
복사
sudo yum install -y git
Shell
복사
values.yaml 파일의 enable: true 로 바꿔주기
helm plugin install https://github.com/hypnoglow/helm-s3.git
Shell
복사
helm s3 init s3://<bucket name>/charts
Shell
복사
helm repo add my-helm-charts s3://<bucket name>/charts
Shell
복사
helm package ./my-nginx/ helm s3 push ./my-nginx-0.1.0.tgz my-helm-charts helm upgrade --install my-nginx-release my-helm-charts/my-nginx --version 0.1.0 --namespace helm-space
Shell
복사

새 버전으로 배포

Chart.yaml에서 version 수정 (예: 0.1.0 → 0.2.0)
vim my-nginx/Chart.yaml
Shell
복사
새 버전 패키징 및 배포
helm package ./my-nginx/ helm s3 push ./my-nginx-0.2.0.tgz my-helm-charts
Shell
복사
새 버전으로 업그레이드
helm upgrade my-nginx-release my-helm-charts/my-nginx --version 0.2.0 --namespace helm-space
Shell
복사
S3 repo에서 사용 가능한 버전 확인
helm search repo my-helm-charts/my-nginx --versions
Shell
복사
현재 배포된 릴리스 상태 확인
helm list -n helm-space
Shell
복사
특정 버전으로 롤백
helm rollback my-nginx-release 1 -n helm-space
Shell
복사
S3 repo 업데이트 (새로운 차트 확인)
helm repo update
Shell
복사