To configure the apps in Kubernetes, we need to define the following Kubernetes objects per app:
- Deployment: The deployment will control the creation of pods, so they will always be available. It will also create them based on the image and will add configuration, where needed. The pod runs the app.
- Service: The service will make the RESTful requests available inside the cluster, with a short name. This routes the requests to any available pod.
- Ingress: This makes the service available outside of the cluster, so we can access the app from outside the cluster.
In this section, we will look at the Thoughts Backend configuration in detail as an example. Later, we will see how the different parts connect. We created a Kubernetes sub-directory (https://github.com/PacktPublishing/Hands-On-Docker-for-Microservices-with-Python/tree/master/Chapter06/thoughts_backend...