Helm 설치

Helm 설치

helm 커멘드는 GitHub의 릴리스 페이지에서 받아올 수 있고, 여기에서는 소스 코드 외에 Windows 및 Linux, macOS용의 바이너리도 제공되고 있다. 배포 아카이브 내에는 바이너리 파일(“helm”)이 그대로 저장되어 있기에, Helm를 이용하고 싶은 머신에서 다운로드하여 압축을 해제하여 적당한 디렉터리에 복사하면 설치 완료이다.

또, macOS의 Homebrew나 Windows의 Chocolatey라고 하는 패키지 매니저 통해서더 설치 할 수 있다. 이에 대해 자세한 설명은 공식 문서를 참조해 주었으면 한다.

helm 명령은 Kubernetes 클러스터에 액세스하기 위해 kubectl 명령을 사용하므로 helm 명령을 실행하는 시스템에 kubectl 명령이 설치되어 있으며 kubectl 명령으로 Kubernetes 클러스터에 액세스 할 수 있도록 설정해야 한다.

지원하는 Kubernetes 클러스터의 버전에 대해서는 명시되어 있지 않지만, “Kubernetes의 최신 안정판"과의 조합이 추천된다. 그렇다고는 해도, 구버전의 Kubernetes라고 해도 바로 이용할 수 없게 되는 것은 아니다. 다만, Kubernetes 1.6 이전에서는 역할(Role) 기반의 액세스 컨트롤(RBAC) 관련 설정으로 제한이 있다고 되어 있다.

덧붙여서, Helm의 v2에서는 helm 명령에 추가적으로 Kubernetes에서 동작하는 tiller라고 하는 어플리케이션이 필요하지만, v3에서는 tiller는 폐지되어, helm 명령만이 필요하게 변경되었다.

macOS에서 설치(Homebrew)

% brew install helm
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/services).

You have 3 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.

==> Downloading https://ghcr.io/v2/homebrew/core/helm/manifests/3.9.4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/helm/blobs/sha256:01a042f197753
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Pouring helm--3.9.4.arm64_monterey.bottle.tar.gz
==> Caveats
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
==> Summary
🍺  /opt/homebrew/Cellar/helm/3.9.4: 64 files, 47.6MB
==> Running `brew cleanup helm`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).



최종 수정 : 2022-09-14