7.2. Installation du Helm
La section suivante décrit comment installer Helm sur différentes plateformes à l'aide de la CLI.
Vous pouvez également trouver l'URL des derniers binaires à partir de la console web d'OpenShift Container Platform en cliquant sur l'icône ? dans le coin supérieur droit et en sélectionnant Command Line Tools.
Conditions préalables
- Vous avez installé Go, version 1.13 ou supérieure.
7.2.1. Sous Linux Copier lienLien copié sur presse-papiers!
Téléchargez le binaire Helm et ajoutez-le à votre chemin d'accès :
Linux (x86_64, amd64)
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-linux-amd64 -o /usr/local/bin/helm
# curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-linux-amd64 -o /usr/local/bin/helm
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Linux sur IBM zSystems et IBM® LinuxONE (s390x)
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-linux-s390x -o /usr/local/bin/helm
# curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-linux-s390x -o /usr/local/bin/helm
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Linux sur IBM Power (ppc64le)
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-linux-ppc64le -o /usr/local/bin/helm
# curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-linux-ppc64le -o /usr/local/bin/helm
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Rendre le fichier binaire exécutable :
chmod +x /usr/local/bin/helm
# chmod +x /usr/local/bin/helm
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Vérifier la version installée :
helm version
$ helm version
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Exemple de sortie
version.BuildInfo{Version:"v3.0", GitCommit:"b31719aab7963acf4887a1c1e6d5e53378e34d93", GitTreeState:"clean", GoVersion:"go1.13.4"}
version.BuildInfo{Version:"v3.0", GitCommit:"b31719aab7963acf4887a1c1e6d5e53378e34d93", GitTreeState:"clean", GoVersion:"go1.13.4"}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
7.2.2. Sous Windows 7/8 Copier lienLien copié sur presse-papiers!
-
Téléchargez le dernier fichier
.exe
et placez-le dans un répertoire de votre choix. - Cliquez avec le bouton droit de la souris sur Start et cliquez sur Control Panel.
- Sélectionnez System and Security puis cliquez sur System.
- Dans le menu de gauche, sélectionnez Advanced systems settings et cliquez sur Environment Variables en bas.
- Sélectionnez Path dans la section Variable et cliquez sur Edit.
-
Cliquez sur New et saisissez le chemin d'accès au dossier contenant le fichier
.exe
dans le champ ou cliquez sur Browse et sélectionnez le répertoire, puis cliquez sur OK.
7.2.3. Sur Windows 10 Copier lienLien copié sur presse-papiers!
-
Téléchargez le dernier fichier
.exe
et placez-le dans un répertoire de votre choix. -
Cliquez sur Search et tapez
env
ouenvironment
. - Sélectionnez Edit environment variables for your account.
- Sélectionnez Path dans la section Variable et cliquez sur Edit.
- Cliquez sur New et saisissez le chemin d'accès au répertoire contenant le fichier exe dans le champ ou cliquez sur Browse et sélectionnez le répertoire, puis cliquez sur OK.
7.2.4. Sur MacOS Copier lienLien copié sur presse-papiers!
Téléchargez le binaire Helm et ajoutez-le à votre chemin d'accès :
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-darwin-amd64 -o /usr/local/bin/helm
# curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-darwin-amd64 -o /usr/local/bin/helm
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Rendre le fichier binaire exécutable :
chmod +x /usr/local/bin/helm
# chmod +x /usr/local/bin/helm
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Vérifier la version installée :
helm version
$ helm version
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Exemple de sortie
version.BuildInfo{Version:"v3.0", GitCommit:"b31719aab7963acf4887a1c1e6d5e53378e34d93", GitTreeState:"clean", GoVersion:"go1.13.4"}
version.BuildInfo{Version:"v3.0", GitCommit:"b31719aab7963acf4887a1c1e6d5e53378e34d93", GitTreeState:"clean", GoVersion:"go1.13.4"}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow