dimuit86 / jenkins-k8s

Deploying and Scaling Jenkins on Kubernetes

Home Page:https://devopsblogs.wordpress.com/2019/11/07/deploying-and-scaling-jenkins-on-kubernetes/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jenkins in Kubernetes

This repository has a Dockerfile and a helm chart for setting up a simple Jenkins master for running in Kubernetes.

This Jenkins has the required tools to work in and with Kubernetes

  • Jenkins application with pre-loaded plugins (see plugins.txt)
  • Skipped setup wizard
    • You can control admin user and password with --set adminUser=${USER},adminPassword=${PASSWORD}
    • You can add and remove plugins by editing the plugins.txt file

Build the Jenkins Docker image

You can build the image yourself

# Build the image
$ docker build -t anuphnu/jenkins:v0.0.1 .

# Push the image
$ docker push anuphnu/jenkins:v0.0.1

Deploy Jenkins helm chart to Kubernetes

# Init helm and tiller on your cluster
$ helm init
$ kubectl apply -f rbac-config.yaml

# Deploy the Jenkins helm chart
# (same command for install and upgrade)
$ helm upgrade --install jenkins ./helm/jenkins-k8s

Data persistence

By default, in Kubernetes, the Jenkins deployment uses a persistent volume claim that is mounted to /var/jenkins_home. This assures your data is saved across crashes, restarts and upgrades.

About

Deploying and Scaling Jenkins on Kubernetes

https://devopsblogs.wordpress.com/2019/11/07/deploying-and-scaling-jenkins-on-kubernetes/


Languages

Language:Dockerfile 52.1%Language:Groovy 30.1%Language:Smarty 17.8%