Giter Site home page Giter Site logo

helm-hellospringbooteks's Introduction

helm-hellospringbooteks

Pre-Requisites

- Install Git
- Install Maven
- Install Docker
- Install EKS-Cluster
- Install Helm

Install Java:

yum install java-1.8.0-openjdk-devel -y

Install Git:

yum install git -y

Install Apache-Maven:

wget https://mirrors.estointernet.in/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar xvzf apache-maven-3.6.3-bin.tar.gz

vi /etc/profile.d/maven.sh
--------------------------------------------
export MAVEN_HOME=/opt/apache-maven-3.6.3
export PATH=$PATH:$MAVEN_HOME/bin
--------------------------------------------

source /etc/profile.d/maven.sh
mvn -version

Install Docker:

yum install docker -y
service docker start

Clone code from github:

git clone https://github.com/cloudtechmasters/helm-chart-metricserver-HPA.git
cd helm-chart-metricserver-HPA/hellospringbooteks

Build Maven Artifact:

mvn clean install

Build Docker image for Springboot Application

docker build -t cloudtechmasters/hellospringbooteks:v1 .

Docker login

docker login

Push docker image to dockerhub

docker push cloudtechmasters/hellospringbooteks:v1

Edit application code at below place and shown in below image

vi src/main/java/com/spjenk/hello/HelloController.java

image

Again build artifact and build docker image

mvn clean install
docker build -t cloudtechmasters/hellospringbooteks:v2 .
docker push cloudtechmasters/hellospringbooteks:v2

Create helm chart for springboot application

helm create hellospringbooteks

Edit values.yaml file and Deployment.yaml files as shown in below images

cd hellospringbooteks   
vi hellospringbooteks/values.yaml

image

Deploy springboot application using helm

helm install hellospringbooteks hellospringbooteks

Goto web UI and check output

<loadbalancer>:8080/hello
http://a03bb109d210749f680a06813c8793d2-1493801453.us-east-1.elb.amazonaws.com:8080/hello

image

Again edit values.yaml file and Deployment.yaml files as shown in below images

vi hellospringbooteks/values.yaml

image

Upgrade springboot application using helm

helm upgrade hellospringbooteks hellospringbooteks

Check revision history using below command

helm history hellospringbooteks

image

Goto web UI and check output

<loadbalancer>:8080/hello
http://a03bb109d210749f680a06813c8793d2-1493801453.us-east-1.elb.amazonaws.com:8080/hello

image

Rollback springboot application using helm

helm rollback hellospringbooteks 1

Check revision history using below command

helm history hellospringbooteks

Goto web UI and check output

<loadbalancer>:8080/hello
http://a03bb109d210749f680a06813c8793d2-1493801453.us-east-1.elb.amazonaws.com:8080/hello

image

Delete springboot application using helm

helm delete hellospringbooteks

helm-hellospringbooteks's People

Contributors

cloudtechmasters avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.