Summary
In this chapter, we learned how to deploy the microservices in this book on Kubernetes using Helm. We have seen how Helm can be used to create reusable templates, minimizing the boilerplate code required to create the Kubernetes manifests. Reusable templates are stored in a common chart, while microservice-specific charts provide values specific to each microservice. At the top level, we have parent charts that describe how a development/test and stage/production environment should be deployed using the microservice charts, optionally together with charts for resource managers such as databases and queue managers.
We have also seen how we can benefit from using Spring Boot features to facilitate deployments to Kubernetes. Spring Boot’s support for graceful shutdown can be used to allow active requests to complete before a Spring Boot-based microservice is stopped, such as during a rolling upgrade. The support for liveness and readiness probes makes it easy to declare...