Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.07 KB

Helm-tiller-configuration.md

File metadata and controls

45 lines (34 loc) · 1.07 KB

Installing Helm on Jenkins server

Enable 10250 on Master and Worker Nodes for helm communication

port: 10250

Add Jenkins user into sudoers file to get sudo access

vi /etc/sudoers
jenkins ALL=(ALL) NOPASSWD: ALL
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh
chmod 700 get_helm.sh
./get_helm.sh -v v2.14.1

Installing Tiller

Create a tiller Serviceaccount in Kubernetes Master

kubectl -n kube-system create serviceaccount tiller

Bind the tiller serviceaccount to the cluster-admin role in Kubernetes Master:

kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller

Copy admin.conf file from Kubernetes master to Jenkins user's home directory in Jenkins server

mkdir /var/lib/jenkins/.kube
Manually copy /etc/kubernetes/admin.conf file to /var/lib/jenkins/.kube/config file

chown -R jenkins:jenkins /home/jenkins/.kube

Run 'helm init' in Jenkins Server to configure helm

helm init --service-account tiller