Probes are a great tool for making some applications more resilient in Kubernetes. In this lab, you will have the opportunity to explore how to use probes to make Kubernetes react more quickly to application failures. This will help you design more robust applications in your Kubernetes clusters!
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Get the Pod Definition
- Look for the Pod called
webserver
and get a copy of its YAML definition.
- Look for the Pod called
- Add a Probe to the Pod
- Edit the Pod YAML so that it contains a probe that is able to detect when the Pod has stopped working. You can determine the pod’s health by making an http request to
/
on port8080
on the pod.
- Edit the Pod YAML so that it contains a probe that is able to detect when the Pod has stopped working. You can determine the pod’s health by making an http request to