Skip to content
/ DB-CD Public

Deploy Java Springboot app connected to mongodb nosql database into the DB cluster running on a Fargate node, using Jenkins, Terraform, Kubernetes, and Helm charts.

Notifications You must be signed in to change notification settings

Ohubabs/DB-CD

Repository files navigation

DB-CD

DragonBall Project Part 6

Project Objective

For this project, set up a pipeline to deploy a stateless Java Springboot app connected to MongoDB NoSQL database into the DB cluster running on a Fargate node using Terraform with the Kubernetes and Helm Providers.

Prerequisites

  • MongoDB deployed in DB Cluster (To set MongoDB in the DB cluster, check Project part 5: https://github.com/Ohubabs/DB-Mongo.git).
  • Prior knowledge of Terraform, Kubernetes, and Helm, application deployment, charts.

Step 1: Go to New Item” from the Dashboard, select “Pipeline”, and name it “Springapp”.

Screenshot 2024-06-24 at 3 04 32 PM

Step 2: Go to “Configuration”, Select “Poll SCM” and Enter the details for your GitHub repo & Jenkinsfile or copy and paste the Jenkinsfile in this repo.

image

Notes: -

  • To enter details for your MongoDB database, edit the var.tf file to fill in the secret in the krillin.tf file.
  • If you change the name for the secret with your MongoDB credentials, you must also change it in the values file for the customized helm chart via the spring-mongo.yml file.
  • To expose your application with SSL encryption to the internet, you must edit the spring-issuer.yml file with your email, custom URLs for your site with your AWS registered domain name, and your AWS hosted zone ID. In addition, you will need your AWS credentials, which were saved in a secret made during Project Part 1 (ref: https://github.com/Ohubabs/DB-Pipeline.git)

Step 3: Click “Build now” to run your pipeline with Maven, SonarQube, and Docker to Build, Test, Containerize, and Push your Java Springboot Web app to DockerHub.

Screenshot 2024-06-24 at 6 27 18 PM

Screenshot 2024-06-24 at 6 27 26 PM

Screenshot 2024-06-24 at 6 27 32 PM

Screenshot 2024-06-24 at 6 28 58 PM

Screenshot 2024-06-24 at 6 38 11 PM

Screenshot 2024-06-24 at 6 38 28 PM

Screenshot 2024-06-24 at 6 39 00 PM

Screenshot 2024-06-25 at 7 10 13 PM

Screenshot 2024-06-25 at 7 24 43 PM

Screenshot 2024-06-25 at 6 42 42 PM

About

Deploy Java Springboot app connected to mongodb nosql database into the DB cluster running on a Fargate node, using Jenkins, Terraform, Kubernetes, and Helm charts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages