Running the Python probes example

If you check out the 0.3.0 branch, you can investigate this code and run it locally in your own instance of Minikube or another Kubernetes cluster. To check out the code:

git clone https://github.com/kubernetes-for-developers/kfd-flaskcd kfd-flaskgit checkout 0.3.0kubectl apply -f deploy/

The final command will create the service and deployment redis-master, and the service, configmap, and deployment for the Python/flask code. If you then use the kubectl describe command, you can see the probes defined and their values:

kubectl describe deployment flask

You can also look at the logs for the single flask Pod ...

Get Kubernetes for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.