Helm 3 complete tutorial (two): Helm 3 installation tutorial

Searching for detailed Helm 3 documents on the Internet failed, the official website documents were too messy, and the technical group consulted on the document information and was ridiculed. MD doesn't fight for steamed buns. If there is no good document, I will summarize a document by myself. Part of the content in the document comes from major blogs and official websites, and part of the text content has been rearranged by me. All concept explanations will be accompanied by actual code records and experience. The article is updated from time to time, welcome to follow and subscribe to the column. If you have any questions, please leave a message in the comment area.
Link to the original text of this column: https://blog.csdn.net/xzk9381/category_10895812.html, please indicate the source for reprinting

Regarding the installation method of Helm 3, the official provides two methods, and the community has also launched different package managers according to different platforms to install Helm. These methods are described below.

One, use binary installation

For all Helm versions that have been released, the officials provide corresponding binary packages according to different operating systems. In the official download address , you can see the download entry for different platforms in the Installation and Upgrading section of each version . For example, here we need to install Helm 3.5.3 version based on Linux amd64 platform, the operation steps are as follows:

  1. Download the binary package to the /opt directory of the server, download link: https://get.helm.sh/helm-v3.5.3-linux-amd64.tar.gz
wget https://get.helm.sh/helm-v3.5.3-linux-amd64.tar.gz -O /opt
  1. Unzip the binary archive:
tar zxf helm-v3.5.3-linux-amd64.tar.gz
  1. Copy the helm program in the unzipped directory to the /usr/local/bin directory:
cp -pr linux-amd64/helm /usr/local/bin/
  1. At this point, you can use the helm command:
helm --help

Two, install using script

The official website also provides an online script to install the latest version of Helm. You can use the following command to get this script and execute it locally. A series of information will be output during the installation process, we can use this information to understand what actions the script has performed:

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh

If you want to start the installation directly, you can use the following command:

curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash

Third, the package manager provided by the community

The community provides different package managers for MacOS, Windows, Debian/Ubuntu, Snap, FreeBSD and other platforms to install the latest version of Helm. If you need to build the development version of Helm or use the source code, you can refer to the method provided on the official website: https://helm.sh/zh/docs/intro/install/

1. MacOS

In MacOS system, you can use Homebrew to build Helm, the command is as follows:

brew install helm

2. Windows

Members of the Helm community contributed a Helm package built in Chocolatey:

choco install kubernetes-helm

3. Debian/Ubuntu

For Debian and Ubuntu platforms, the easiest way to build Helm is to use Apt:

curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
sudo apt-get install apt-transport-https --yes
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-get install helm

4. Snap

The Snapcrafters community maintains the Snap version of the Helm package:

sudo snap install helm --classic

5. FreeBSD

FreeBSD community members contributed a way to build Helm using pkg:

pkg install helm

Link to the original text of this column: https://blog.csdn.net/xzk9381/category_10895812.html, please indicate the source for reprinting

Guess you like

Origin blog.csdn.net/xzk9381/article/details/114998050