So we can manually rollback a bad release, but wouldn’t it be nice if we could prevent this bad release from being released in the first place?
Kubernetes lets us define a way to automatically probe a pod before it starts receiving requests, and that’s what we can use in this case. There are two types of probes: a readinessProbe and a livenessProbe. We’ll first use readinessProbe, and then we can talk about the difference between the two.
Let’s go back to our manifest and add this readinessProbe attribute: