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`).