Install helm from github latest release not snap.

This commit is contained in:
2024-01-20 10:37:56 +13:00
parent 216df269ed
commit f95eed937c

View File

@ -43,13 +43,15 @@ sudo apt update && sudo apt --yes install podman
#+end_src
When working with kubernetes applications we often use [[https://helm.sh][helm]], unfortunately we need an extra ~apt~ repository for this so let's add that now and install.
When working with kubernetes applications we often use [[https://helm.sh][helm]], let's download and install the latest release from github.
#+NAME: Install helm
#+BEGIN_src tmux
curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update && sudo apt install -y helm
wget $(sed 's/.\{1\}$//' <<< $(curl -s https://api.github.com/repos/helm/helm/releases/latest | grep -oP 'https...get.helm.sh.helm-v\d+.\d+.\d+-linux-amd64.tar.gz[)]'))
tar xf helm*.tar.gz linux-amd64/helm --transform 's,linux-amd64,,' && rm -rf helm-*linux-amd64.tar.gz
sudo mv helm /usr/local/bin/helm
#+END_SRC