In this project I'm demonstrating you the most interesting features of Micronaut Kubernetes Project for integration between Micronaut and Kubernetes API.
Currently you may find here some examples of microservices implementation using different projects from Micronaut. All the examples are divided into the branches and described in a separated articles on my blog. Here's a full list of available examples:
- Using Micronaut Kubernetes for integration with Kubernetes discovery,
ConfigMaps
andSecrets
. A source code is available in the branch master. A detailed guide may be find in the following article: Guide to Micronaut Kubernetes
To successfully run example applications you need to have:
- JDK11+ as a default Java on your machine
- Maven 3.5+ available under PATH
- Minikube (I tested on version
1.6.1
) - Skaffold available under PATH
Our sample microservices-based system consists of the following modules:
- employee-service - a module containing the first of our sample microservices that allows to perform CRUD operation on Mongo repository of employees
- department-service - a module containing the second of our sample microservices that allows to perform CRUD operation on Mongo repository of departments. It communicates with employee-service.
- organization-service - a module containing the third of our sample microservices that allows to perform CRUD operation on Mongo repository of organizations. It communicates with both employee-service and organization-service.
The following picture illustrates the architecture described above including Kubernetes objects.