Skip to content

Instantly share code, notes, and snippets.

@shiveshabhishek
Last active July 16, 2018 16:55
Show Gist options
  • Save shiveshabhishek/3762f9fab819ffd29a710185d963b8ce to your computer and use it in GitHub Desktop.
Save shiveshabhishek/3762f9fab819ffd29a710185d963b8ce to your computer and use it in GitHub Desktop.
Set-Up Jenkins in Linux Ubuntu

Pre-requisites:

Minikube

Refer here : https://kubernetes.io/docs/tasks/tools/install-minikube/

Helm:

There are two parts to Helm: The Helm client (helm) and the Helm server (Tiller). Both needs to be installed.

Installing the Helm Client (From Script) :
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
chmod 700 get_helm.sh
./get_helm.sh
Installing Tiller :

run helm init

if you face any error, refer here: https://github.com/kubernetes/helm/blob/master/docs/install.md#easy-in-cluster-installation

--------------------------------------------------------------------------

After all this, Check if minikube is running: minikube status

Create namespace: kubectl create -f minikube/jenkins-namespace.yaml

Create persistent volume (folder /data is persistent on minikube) kubectl create -f minikube/jenkins-volume.yaml

Execute helm: helm install --name jenkins -f helm/jenkins-values.yaml stable/jenkins --namespace jenkins-project

Check admin password for jenkins: printf $(kubectl get secret --namespace jenkins-project jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo

And you are done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment