@@ -304,13 +304,23 @@ specify a readiness probe. In this case, the readiness probe might be the same
304
304
as the liveness probe, but the existence of the readiness probe in the spec means
305
305
that the Pod will start without receiving any traffic and only start receiving
306
306
traffic after the probe starts succeeding.
307
- If your container needs to work on loading large data, configuration files, or
308
- migrations during startup, specify a readiness probe.
309
307
310
308
If you want your container to be able to take itself down for maintenance, you
311
309
can specify a readiness probe that checks an endpoint specific to readiness that
312
310
is different from the liveness probe.
313
311
312
+ If your app has a strict dependency on back-end services, you can implement both
313
+ a liveness and a readiness probe. The liveness probe passes when the app itself
314
+ is healthy, but the readiness problem additionally checks that each required
315
+ back-end service is available. This helps you avoid directing traffic to Pods
316
+ that can only respond with error messages.
317
+
318
+ If your container needs to work on loading large data, configuration files, or
319
+ migrations during startup, you can use a
320
+ [ startup probe] ( #when-should-you-use-a-startup-probe ) . However, if you want to
321
+ detect the difference between an app that has failed and an app that is still
322
+ processing its startup data, you might prefer a readiness probe.
323
+
314
324
{{< note >}}
315
325
If you want to be able to drain requests when the Pod is deleted, you do not
316
326
necessarily need a readiness probe; on deletion, the Pod automatically puts itself
0 commit comments