Yatri Cloud

Learn about cloud computing and DevOps. We break down difficult concepts into understandable…

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.

How do you set up Jenkins on Kubernetes? — Yatharth Chauhan — Yatri Cloud
How do you set up Jenkins on Kubernetes?

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:

```yaml

--

--

Yatri Cloud
Yatri Cloud

Published in Yatri Cloud

Learn about cloud computing and DevOps. We break down difficult concepts into understandable language so you can learn them easily and apply them to your projects. We will provide you with hands-on tutorials for popular cloud platforms like AWS, Azure, GCP.

Written by Yatharth Chauhan

13x Azure, 5x GitHub & LinkedIn Certified Youtuber @YatriCloud & Brand Creator Founder @WEBXELA & Gold MLSA

No responses yet