Step by step guide to deploy a Spring Boot micro service to local Kubernetes environment

6/21/2016

I would like to make some experiments with Kubernetes to possibly use it for our project.

Reading the documents and watching the presentations, I have seen that one possible/common set up is Vagrant+CoreOS+Kubernetes.

So, I followed the steps listed here: https://coreos.com/kubernetes/docs/latest/kubernetes-on-vagrant.html

Looks like my environment is working fine.

But after that, I could not find any documentation about how to deploy a simple Spring Boot RestAPI to that environment. Do you know any documentation/step by step guide for deploying a web service to local Kubernetes environment?

-- turgos
kubernetes

1 Answer

6/27/2016

The roundabout steps now that you have a cluster are to package your app into a docker image, then deploy that to the k8s cluster. From there you'll want to expose the pods to the system via services.

Have a look at this video from SpringOne last year: https://spring.io/blog/2015/10/19/springone2gx-2015-replay-spring-boot-micro-services-containers-and-kubernetes-how-to

-- Steve Sloka
Source: StackOverflow