Setting up common definitions in the base folder

In the base folder, we will have one definition file for each microservice, but none for the resource managers (MongoDB, MySQL, and RabbitMQ). The resource managers will only be deployed in Kubernetes in the development environment and are expected to run outside of Kubernetes in the production environment—for example, in an existing database and queue manager service on premises or as a managed service in the cloud.

The definition files in the base folder contain a deployment object and a service object for each microservice. Let's go through a typical deployment object in kubernetes/services/base/product.yml. It is geared toward what is required in a development environment. It starts with ...

Get Hands-On Microservices with Spring Boot and Spring Cloud now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.