Customize the default agent – we need to mount a volume into the default agent pod to store workspace files and share them with the other agents.Let’s consider the following list of tasks: We need to configure several things before creating a build pipeline. $ helm install -f k8s/jenkins-helm-config.yaml jenkins jenkins/jenkins -n jenkins Customize Jenkins In order to include an additional configuration, we need to create a YAML file and pass it with -f option. So, before installing it we need to create a new namespace with the kubectl create ns jenkins command. The Jenkins instance is running in the dedicated namespace. Then, we may install Jenkins by executing the following command. You can find out more about it here.įirstly, we will add a new Helm repository and update it.
It is worth reading more about this plugin before continuing. However, we may override all the properties using the JCaSC Plugin. The official Helm chart spawns agents on Kubernetes and utilizes Jenkins Kubernetes Plugin. We may install Jenkins server on Kubernetes using the Helm package manager. Then you should just follow my instructions 🙂 Deploy Jenkins on Kubernetes with Helm In order to do that you need to clone my repository sample-spring-boot-on-kubernetes.
If you would like to try it by yourself, you may always take a look at my source code. We will implement typical steps for building and deploying Java applications on Kubernetes.
#How jenkins is linked to docker and kubernetes how to#
You will learn how to use and customize the Helm for this installation. In this article, I’ll show how to install Jenkins on Kubernetes, and use it for building a Java application with Maven. Although Jenkins is a mature solution, it still can be the first choice for building CI on Kubernetes.