In this tutorial, we will learn how to install and configure Helm for Kubernetes. Helm is a package manager for Kubernetes that allows developers and operators to more easily package, configure, and deploy applications and services onto Kubernetes clusters.
By the end of this tutorial, you will have a working Helm installation on your system and be able to deploy a test application to your Kubernetes cluster using Helm.
kubectl
curl
or wget
installedcurl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
helm version
You should see version information for Helm, similar to the following:
version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}
kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
kubectl get pods --namespace kube-system
You should see a pod named tiller-deploy-*
in the running state.
helm repo add bitnami https://charts.bitnami.com/bitnami
bitnami/nginx
chart:helm install my-webserver bitnami/nginx
This command installs the nginx web server with the name my-webserver
.
kubectl get services
You should see a service named my-webserver
with an external IP.
In this tutorial, you have installed and configured Helm on your system, and deployed a test application to your Kubernetes cluster using Helm. You can now use Helm to manage your Kubernetes applications and services more easily.
Remember to use the helm
and kubectl
commands to verify your deployments.