How to install tiller for the azure kubernetes cluster ?
image used in the below command tiller_image: "gcr.io/kubernetes-helm/tiller:v2.14.3"
2. install check the status
kubectl get pods -n kube-system | grep tiller | grep Running
3. kubectl create serviceaccount --namespace kube-system tiller
4. kubectl create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
5. helm init --history-max 200 --service-account tiller --node-selectors "beta.kubernetes.io/os=linux" --tiller-image {{tiller_image}} --tiller-connection-timeout 45
6. helm init --history-max 200 --service-account tiller --node-selectors "beta.kubernetes.io/os=linux" --tiller-image {{tiller_image}} --tiller-connection-timeout 45 --upgrade --force-upgrade
if step 5 and step 6 is not working, please use the below command
reference :
https://github.com/helm/helm/issues/6374
https://stackoverflow.com/questions/58075103/error-error-installing-the-server-could-not-find-the-requested-resource-helm-k
helm init --service-account tiller --override spec.selector.matchLabels.'name'='tiller',spec.selector.matchLabels.'app'='helm' --output yaml | sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@' | kubectl apply -f -
check the tiller is running or not by installing a helm chart
kubectl create ns kaushik
helm repo add nginx-stable https://helm.nginx.com/stable
helm repo update
helm install --name nginx-ingress stable/nginx-ingress --namespace kaushik --debug
No comments:
Post a Comment