Skip to content

jvanjankumar/helm-blue-gree-for-springboot-mysql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

helm-blue-gree-for-springboot-mysql

Pre-Requisites

1. Install GIT
2. Install Java
3. Install Maven
4. Minikube Setup
5. Helm Install

Install JAVA-8, GIT and Maven

yum install java-1.8.0-openjdk -y
yum install git -y
yum install maven -y

kubernetes cluster - minikube

minikube setup

Enable the Ingress controller

minikube addons enable ingress

Install helm

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
export PATH=$PATH:/usr/local/bin
./get_helm.sh

Update Secret Values and Run

kubectl apply -f helm/mysql-secrets.yaml

Deploy Helm Chart

helm repo add helm-repo https://charts.bitnami.com/bitnami
helm install mysql-release helm-repo/mysql --dry-run --debug -f helm/mysql/mysql-values.yaml
helm install mysql-release helm-repo/mysql -f helm/mysql/mysql-values.yaml

Build and Deploy Springboot Applcation with helm

  1. Build Springboot Applocation
mvn clean install
  1. Build and Push docker image
docker build -t naresh240/springboothello:v1 .
docker login
docker push naresh240/springboothello:v1
  1. Deploy Springboot Application
helm install springboothello helm/springboot-example

Add Record in Hostedzone under Route53

image

Check application in UI

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 61.2%
  • HTML 19.3%
  • Mustache 17.6%
  • Dockerfile 1.9%