File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
content/en/docs/tasks/configure-pod-container Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -488,7 +488,9 @@ startupProbe:
488
488
` ` `
489
489
490
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 :
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 :
492
494
493
495
` ` ` none
494
496
Events:
@@ -499,9 +501,11 @@ Events:
499
501
Normal Pulled 24m kubelet Successfully pulled image "docker.io/kennethreitz/httpbin" in 5m12.402735213s
500
502
Normal Created 24m kubelet Created container httpbin
501
503
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
503
505
` ` `
504
506
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.
505
509
{{< /note >}}
506
510
507
511
# ## TCP probes
You can’t perform that action at this time.
0 commit comments