Skip to content

Commit 02aa31c

Browse files
authored
changes
Signed-off-by: GitHub <[email protected]>
1 parent 70e2beb commit 02aa31c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ startupProbe:
488488
```
489489

490490
{{< note >}}
491-
HTTP probes will not follow redirects. It will succeed on redirect response like `302`, but will report the warning as shown below:
491+
When the kubelet probes a Pod using HTTP, the default behavior is only to 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 a
493+
warning and a related Event is created:
492494

493495
```none
494496
Events:
@@ -499,9 +501,11 @@ Events:
499501
Normal Pulled 24m kubelet Successfully pulled image "docker.io/kennethreitz/httpbin" in 5m12.402735213s
500502
Normal Created 24m kubelet Created container httpbin
501503
Normal Started 24m kubelet Started container httpbin
502-
Warning ProbeWarning 4m11s (x1197 over 24m) kubelet Readiness probe warning: <body>
504+
Warning ProbeWarning 4m11s (x1197 over 24m) kubelet Readiness probe warning: Probe terminated redirects
503505
```
504506

507+
If the kubelet receives a redirect where the hostname is different from the request, the outcome of the probe
508+
is a warning and the kubelet creates an event to report this.
505509
{{< /note >}}
506510

507511
### TCP probes

0 commit comments

Comments
 (0)