Member-only story
Installing Jenkins on Kubernetes
How do you set up Jenkins on Kubernetes?
Introduction
Kubernetes is an open-source platform that automates the deployment, scaling, and management of containerized applications. By running Jenkins on Kubernetes, you can leverage Kubernetes’ orchestration power to create scalable Jenkins agents and dynamically manage resources.
1. Prerequisites
Before you start, ensure the following: — A running Kubernetes cluster. — kubectl
command-line tool installed and configured. - Helm
package manager installed.
Don’t have premium access?
To Get Full Access Join our Yatri Cloud Community: Join Now
Watch Videos on YouTube: Watch Now
2. Setting Up Jenkins on Kubernetes
Step 1: Create a namespace for Jenkins. Organizing DevOps tools in a separate namespace is a good practice.
bash kubectl create namespace devops-tools
Step 2: Create a service account with admin permissions.
Create a serviceAccount.yaml
file with the following contents: