Skip to content

DIK-SHITA08/CICD_Pipeline_for_Java_Application_to_deploy_on_Kubernetes_Cluster_using-_enkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CICD Pipeline for Java Application to deploy on Kubernetes Cluster using Jenkins

This project is a CICD pipeline for deploying a Java application on a Kubernetes cluster using Jenkins. It uses Docker as the container runtime and Docker Hub as the container registry. The project also includes Sonarqube for code analysis and Helm for packaging and deploying on Kubernetes.

Screenshot (309)

Technologies and Tools Used

  • Kubernetes: Orchestration tool
  • Docker: Container runtime
  • Jenkins: CI/CD server
  • Docker Hub: Container registry
  • Helm: Package and deploy on Kubernetes
  • Git: Version control system
  • Maven: Build tool
  • Sonarqube: Code analysis server

Prerequisites

To use this project, you will need the following:

  • A Kubernetes cluster
  • Docker installed on your local machine
  • Jenkins installed on your local machine or on a remote server
  • A Docker Hub account
  • Git installed on your local machine
  • Maven installed on your local machine
  • Sonarqube installed on your local machine or on a remote server

Getting Started

To get started, follow these steps:

  1. Clone this repository to your local machine:
git clone https://github.com/DIK-SHITA08/CICD_Kubernetes_Cluster_using_Jenkins.git
  1. Build the Java application using Maven:
mvn clean install
  1. Build the Docker image:
docker build -t <your-docker-hub-username>/<your-image-name>:<tag> .
  1. Push the Docker image to Docker Hub:
docker push <your-docker-hub-username>/<your-image-name>:<tag>
  1. Create a Kubernetes deployment using Helm:
helm install <your-release-name> ./helm-chart
  1. Verify that the Java application is running on the Kubernetes cluster:
kubectl get pods
  1. Set up a Jenkins job to automate the CICD pipeline. Use the Jenkinsfile included in this repository as a template.

Contributing

If you would like to contribute to this project, please follow these steps:

  1. Fork this repository to your own account.
  2. Create a branch from the main branch with a descriptive name.
  3. Make your changes and commit them with descriptive commit messages.
  4. Push your changes to your forked repository.
  5. Create a pull request to merge your changes into the main branch of this repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published