Helm is for packaging and deploying kubernetes applications
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
helm create nodeapp-helm
helm package nodeapp-helm
helm install nodeapp-helm
If you do not mention name, helm chooses random names for release, if you want to have custom name for a relase, run the following command
helm install --name my-release nodeapp-helm
configmaps is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "configmaps" in API group "" in the namespace "kube-system"
kubectl --namespace kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl --namespace kube-system patch deploy tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
helm upgrade --set-string image.tag=v2 <release-name> <chart-path>
helm upgrade --set-string image.tag=v2 nodeapp nodeapp
helm ls
helm ls --all
To delete release completely run following two commands
helm delete helm-release-name