Skip to content

Commit a0db2fc

Browse files
authored
Merge pull request #44098 from coder12git/sur/docs
Document on the probes page that redirects are not followed to
2 parents 1fc9e7a + f10369c commit a0db2fc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,26 @@ startupProbe:
487487
value: ""
488488
```
489489

490+
{{< note >}}
491+
When the kubelet probes a Pod using HTTP, it only follows redirects if the redirect
492+
is to the same host. If the kubelet receives 11 or more redirects during probing, the probe is considered successful
493+
and a related Event is created:
494+
495+
```none
496+
Events:
497+
Type Reason Age From Message
498+
---- ------ ---- ---- -------
499+
Normal Scheduled 29m default-scheduler Successfully assigned default/httpbin-7b8bc9cb85-bjzwn to daocloud
500+
Normal Pulling 29m kubelet Pulling image "docker.io/kennethreitz/httpbin"
501+
Normal Pulled 24m kubelet Successfully pulled image "docker.io/kennethreitz/httpbin" in 5m12.402735213s
502+
Normal Created 24m kubelet Created container httpbin
503+
Normal Started 24m kubelet Started container httpbin
504+
Warning ProbeWarning 4m11s (x1197 over 24m) kubelet Readiness probe warning: Probe terminated redirects
505+
```
506+
507+
If the kubelet receives a redirect where the hostname is different from the request, the outcome of the probe is treated as successful and kubelet creates an event to report the redirect failure.
508+
{{< /note >}}
509+
490510
### TCP probes
491511

492512
For a TCP probe, the kubelet makes the probe connection at the node, not in the Pod, which

0 commit comments

Comments
 (0)