Deploying Our Microservices to Kubernetes
In this chapter, we will deploy the microservices in this book to Kubernetes. To bundle and configure the microservices for Deployments in different runtime environments, Helm, a package manager for Kubernetes, will be used. Before doing that, we need to review how Service discovery is used. Since Kubernetes comes with built-in support for Service discovery, it seems unnecessary to deploy Netflix Eureka for that purpose. Finally, we will also try out some Spring Boot features that facilitate the Deployment of microservices in Kubernetes.
The following topics will be covered in this chapter:
- Replacing Netflix Eureka with Kubernetes Service objects and
kube-proxy
for Service discovery - Introducing how Kubernetes will be used
- Using Spring Boot’s support for graceful shutdown and probes for liveness and readiness
- Using Helm to package, configure, and deploy the microservices in different environments ...