Skip to content

kvr2277/spring-boot-eks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eks-spring-service

Simple Spring Boot rest services on EKS

Steps

  1. Optional - See if you have JAVA_HOME setup
  1. Check basic java build
./mvnw install
java -jar target/*.jar
curl localhost:8080/name
  1. Create ECR repo aws ecr create-repository
    --repository-name demo-repo
    --image-tag-mutability IMMUTABLE
    --image-scanning-configuration scanOnPush=true

  2. Push image to ECR

Get token to your ECR

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 777258879183.dkr.ecr.us-east-1.amazonaws.com

Build image in your local

./mvnw spring-boot:build-image  

Tag it

docker tag eksdemo:0.0.1-SNAPSHOT 777258879183.dkr.ecr.us-east-1.amazonaws.com/demo-repo:latest

Push image

docker push 777258879183.dkr.ecr.us-east-1.amazonaws.com/demo-repo:latest
  1. Now working with EKS

Continue reading the steps at https://medium.com/p/8c173737f1a

About

Spring Boot based service in EKS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages