We will be using the example system for this chapter and tweaking it to include centralized logging and metrics. The code for this chapter can be found in this book's GitHub repository: https://github.com/PacktPublishing/Hands-On-Docker-for-Microservices-with-Python/tree/master/Chapter10.
To install the cluster, you need to build each individual microservice:
$ cd Chapter10/microservices/
$ cd frontend
$ docker-compose build
...
$ cd thoughts_backend
$ docker-compose build
...
$ cd users_backend
$ docker-compose build
...
The microservices in this chapter are the same ones that we introduced previously, but they add extra log and metrics configuration.
Now, we need to create the example namespace and start the Kubernetes cluster using the find configuration in the Chapter10/kubernetes subdirectory:
$ cd Chapter10/kubernetes
$ kubectl create namespace example
...