Skip to content

AgilAghamirzayev/employee-ms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎯 Deploy Spring Boot Application step-by-step guide


1️⃣ Create Spring Boot Application

✅ Demo: Application


2️⃣ Clean and install your application

✅ Run: mvn clean install -D maven.test.skip=true


3️⃣ Add Dockerfile in your root folder

✅ Demo: Dockerfile


4️⃣ Add spring boot application in your local docker

✅ Run: docker build -t your_docker_name/employees:0.0.1.RELEASE .


5️⃣ Push spring boot application in your docker hub

✅ Run: docker push docker.io/your_docker_name/employees:0.0.1.RELEASE


6️⃣ Create free account in google cloud


7️⃣ Create Google Kubernetes Engine (GKE) Cluster


8️⃣ Take a break and have a coffee


9️⃣ Connect kubernetes cluster and deploy your application

✅ Run in Cloud Shell Editor: kubectl create deployment employees --image=your_docker_name/employees:0.0.1.RELEASE


1️⃣0️⃣ Expose this deployment outside the world

✅ Run: kubectl expose deployment employees --type=LoadBalancer --port=8080


🎉🎊🎇 Congratulations!!! Your application open the world right now.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published