Update Aug 2023: using newer ‘signed-by’ attribute for apt signing keys.
Installing Helm using apt is a straight-forward procedure and documented on the official site. Coming straight from the official helm documentation, here are the commands for Ubuntu 22.
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null sudo chmod 644 /usr/share/keyrings/helm.gpg sudo apt install apt-transport-https --yes echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list sudo apt update sudo apt install helm -y
Check the version and available helm repositories using:
# check version helm version # available helm repo helm repo list
Helm3 alias
For historical reasons, you may want ‘helm3’ to alias this same version. This can be done using the Debian/Ubuntu alternatives concept, but also with a simple link.
Alternatives concept (preferred)
sudo update-alternatives --install /usr/local/bin/helm3 helm3 /usr/sbin/helm 20 sudo update-alternatives --query helm3 ls -l /usr/local/bin/helm3 helm3 version
Link
sudo ln -s /usr/sbin/helm /usr/local/bin/helm3 helm3 version
REFERENCES
helm, installing Helm on Ubuntu using apt
NOTES
manual installation into /usr/local/bin
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 /bin/bash ./get_helm.sh