Use a script to automatically install Kubernetes's package manager Helm on the Linux server
Helm is to Kubernetes what yum is to Red Hat Enterprise Linux, or apt-get is to Ubuntu.
Helm, which is composed of helm CLI and Tiller, is a typical Client/Server application. Helm runs on the client side and provides a command line interface; Tiller applications run inside Kubernetes.
In previous articles on Jerry, we have described the practice of manually downloading the Helm installation package, unzipping it and copying the execution file to the environment variable.
In fact, there is another fully automatic practice, using the installation script to install automatically.
1. Download the installation script automatically
Curl https://raw.githubusercontent.com/helm/helm/master/scripts/get > get_ helm.sh
Open the script and you can see that the environment variable HELM_INSTALL_DIR for the helm installation is / usr/local/bin:
2. Chmod 700 get_helm.sh
. / get_helm.sh:
3. Execute helm init and see the Happy Helming message indicating that the installation was successful.
Creating / root/.helm
Creating / root/.helm/repository
Creating / root/.helm/repository/cache
Creating / root/.helm/repository/local
Creating / root/.helm/plugins
Creating / root/.helm/starters
Creating / root/.helm/cache/archive
Creating / root/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at / root/.helm.
Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
To prevent this, run helm init with the-- tiller-tls-verify flag.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation
Happy Helming!
For more original Jerry articles, please follow the official account "Wang Zixi":