- Install Git
- Install Maven
- Install Docker
- Install EKS-Cluster
- Install Helm
yum install java-1.8.0-openjdk-devel -y
yum install git -y
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
yum install docker -y
service docker start
git clone https://github.com/cloudtechmasters/helm-chart-metricserver-HPA.git
cd helm-chart-metricserver-HPA/hellospringbooteks
mvn clean install
docker build -t cloudtechmasters/hellospringbooteks:v1 .
docker login
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
mvn clean install
docker build -t cloudtechmasters/hellospringbooteks:v2 .
docker push cloudtechmasters/hellospringbooteks:v2
helm create hellospringbooteks
Edit values.yaml file and Deployment.yaml files as shown in below images
cd hellospringbooteks
vi hellospringbooteks/values.yaml
helm install hellospringbooteks hellospringbooteks
<loadbalancer>:8080/hello
http://a03bb109d210749f680a06813c8793d2-1493801453.us-east-1.elb.amazonaws.com:8080/hello
Again edit values.yaml file and Deployment.yaml files as shown in below images
vi hellospringbooteks/values.yaml
helm upgrade hellospringbooteks hellospringbooteks
helm history hellospringbooteks
<loadbalancer>:8080/hello
http://a03bb109d210749f680a06813c8793d2-1493801453.us-east-1.elb.amazonaws.com:8080/hello
helm rollback hellospringbooteks 1
helm history hellospringbooteks
<loadbalancer>:8080/hello
http://a03bb109d210749f680a06813c8793d2-1493801453.us-east-1.elb.amazonaws.com:8080/hello
helm delete hellospringbooteks