Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1013 Bytes

Jenkins-setup-helm.MD

File metadata and controls

44 lines (33 loc) · 1013 Bytes

Jenkins server setup with Helm to deploy into Kubernetes cluster

Download and Install helm

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.16.1

Test with helm command

helm version
helm

Copy config file from Kubernetes master to Jenkins home directory

mkdir /var/lib/jenkins/.kube
copy config file under .kube directory with jenkins ownership

Install tiller in Kubernetes master

kubectl -n kube-system create serviceaccount tiller

Next, bind the tiller serviceaccount to the cluster-admin role:

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

Execute below command in Jenkins server to install tiller on cluster

helm init --service-account tiller

To verify that Tiller is running, list the pods in the kube-system namespace:

kubectl get pods --namespace kube-system