본문 바로가기

Helm (헬름)/Helm

Helm이란? helm 설치 및 기본 명령어 정리

 Helm 차트를 활용한 애플리케이션 패키지 배포

쿠버네티스 애플리케이션 관리를 지원하는 도구

Helm 이란? 
Helm 은 쿠버네티스 package managing tool 이다. 
node.js 의 npm 과 비슷한 형태로 쿠버네티스 패키지 배포를 가능하게 하는 tool 이라고 보면 된다.

- 정리하자면 helm chart를 쿠버네티스에 설치하고, 새로운 버전을 설치할 때마다 release 버전이 생성되고, 새로운 chart를 찾을때에는 helm chart repository에서 찾을 수 있다.

헬름의 특징 4가지

복잡성 관리, 쉬운 업데이트, 간단한 공유, 롤백

- 설치방법

$ 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

Helm 기본 명령어 정리

쿠버네티스 config 파일 확인

cd ~/.kube/
ls

helm 자동완성

source <(helm completion bash)

helm 명령어 입력 후 tap → Chart 조회

Helm 가이드

helm completion

repo 검색

helm search repo [keyword]

hub 검색

helm search hub [keyword]

레포지토리 관리

helm repo add [name] [url]

레포지토리 리스트 확인

helm repo list

레포지토리 업데이트

helm repo update

레포지토리 삭제

helm repo remove [name]

배포 관리

helm install [name] [chart] [flags]

배포 리스트 보기

helm list

배포 상태 확인

helm status

배포 삭제

helm uninstall