Skip to main content

Posts

Showing posts from October 29, 2019

Setting up Helm chart for K8s cluster

Helm is a powerful and flexible package-management and operations tool for Kubernetes. There are two parts to Helm: The Helm client (helm) and the Helm server (Tiller). https://helm.sh/docs/using_helm/#installing-helm 1) ssh to your k8s master node 2) Download the helm client from the url : https://github.com/helm/helm/releases Linux amd64 (checksum) # wget https://get.helm.sh/helm-v2.15.1-linux-amd64.tar.gz # tar -xzvf helm-v2.15.1-linux-amd64.tar.gz # mv linux-amd64/helm /usr/local/bin # which helm # helm version --client --short 3) Now we need to initialize the helm server (Tiller) in the k8s cluster. For this,  > first we need to create a serviceaccount called tiller in the kube-system namespace.  > then create a clusterrolebinding called tiller and attach the clusterrole cluster-admin to the serviceaccount tiller.  # kubectl -n kube-system create serviceaccount tiller  # kubectl create clusterrolebinding tiller --clusterrole cluster-admin --service