Skip to content

Commit 70e2beb

Browse files
authored
added note for redirect of http probe
Signed-off-by: GitHub <[email protected]>
1 parent 16bb7a1 commit 70e2beb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

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

490+
{{< note >}}
491+
HTTP probes will not follow redirects. It will succeed on redirect response like `302`, but will report the warning as shown below:
492+
493+
```none
494+
Events:
495+
Type Reason Age From Message
496+
---- ------ ---- ---- -------
497+
Normal Scheduled 29m default-scheduler Successfully assigned default/httpbin-7b8bc9cb85-bjzwn to daocloud
498+
Normal Pulling 29m kubelet Pulling image "docker.io/kennethreitz/httpbin"
499+
Normal Pulled 24m kubelet Successfully pulled image "docker.io/kennethreitz/httpbin" in 5m12.402735213s
500+
Normal Created 24m kubelet Created container httpbin
501+
Normal Started 24m kubelet Started container httpbin
502+
Warning ProbeWarning 4m11s (x1197 over 24m) kubelet Readiness probe warning: <body>
503+
```
504+
505+
{{< /note >}}
506+
490507
### TCP probes
491508

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

0 commit comments

Comments
 (0)