For executing Probes, there is a timeout given, which is used by the HTTPGet, HTTPPost and TCPSocket probe but not by the Exec probe. This may result in endless blocking invocation if the probe never returns or something causes it to run very long.
|
func (pb *Prober) executeProbe(p *api_v1.Handler, pod *core.Pod, timeout time.Duration) error { |
|
if p.Exec != nil { |
|
log.Debugf("Exec-Probe Pod: %v, Container: %v, Command: %v", formatPod(pod), p.ContainerName, p.Exec.Command) |
|
res, resp, err := pb.Exec.Probe(pb.Config, pod, p.ContainerName, p.Exec.Command) |
For executing Probes, there is a timeout given, which is used by the HTTPGet, HTTPPost and TCPSocket probe but not by the Exec probe. This may result in endless blocking invocation if the probe never returns or something causes it to run very long.
prober/probe/prober.go
Lines 85 to 88 in 7208ea3