Deploying Your First Spring boot application in Kubernetes Cluster

  • Docker Image

  •  Kubernetes Cluster on Any Cloud

How to deploy docker image into kuberneter Cluster

 

kubectl create deployment <DeploymentName> --image=<Docker Iage>

 

Deployment is done now.
 

Can we access app?

No. You can't access.Because No service is created till now.

Need to Expose Deployment

kubectl expose deployment <deployment-name> --type=LoadBalancer --port=8080

Now You can Access App. Enjoy

Made with Slides.com