Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 1.07 KB

README.md

File metadata and controls

55 lines (33 loc) · 1.07 KB

Spring Boot MVC Application deployable in Kubernetes

Thymeleaf template is filled by jpa entities saved in h2 database at startup.

Following dependencies are used:

Application

  • Web
  • JPA
  • H2
  • Lombok
  • Thymeleaf

For H2 Webconsole see application.properties

Metrics

Development

  • Devtools

Swagger

Creating a Docker image

In directory docker build a docker image and push it to public repository DockerHub.

make
make push 

Kubernetes Setup.

Start local kubernetes cluster provided by minikube.

minikube start

In directory k8s create deployment and service in kubernetes cluster.

make 

Kubernetes service is exposed by specifying NodePort in service.yml to access it outside the cluster.