From 6defb3657ff2702a0e71d19442fde8196da33a7d Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Wed, 14 Apr 2021 15:05:08 +0800 Subject: [PATCH] Fix startupProbe behaviour changed Signed-off-by: Shiming Zhang --- pkg/kubelet/prober/worker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/kubelet/prober/worker.go b/pkg/kubelet/prober/worker.go index 7c6e907679e..f627a79d036 100644 --- a/pkg/kubelet/prober/worker.go +++ b/pkg/kubelet/prober/worker.go @@ -250,8 +250,9 @@ func (w *worker) doProbe() (keepGoing bool) { if c.Started != nil && *c.Started { // Stop probing for startup once container has started. + // we keep it running to make sure it will work for restarted container. if w.probeType == startup { - return false + return true } } else { // Disable other probes until container has started.