From 87f9e81c8a46174986f73af0f5f75c00a7520286 Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Thu, 10 Mar 2022 12:19:55 -0700 Subject: [PATCH] mon: disable startup probe on canary pods The canary pods are very short-lived pods and are not running ceph in any form. The startup probe was mistakenly enabled for the canary pod, which could cause the pod to fail unexpectedly if the startup probe was triggered after the delay timeout. Signed-off-by: Travis Nielsen (cherry picked from commit 22dea0a1efc1466d3a88d09e2e7b0050c6fc728e) --- pkg/operator/ceph/cluster/mon/mon.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/operator/ceph/cluster/mon/mon.go b/pkg/operator/ceph/cluster/mon/mon.go index bf7988ba3..2d153891b 100644 --- a/pkg/operator/ceph/cluster/mon/mon.go +++ b/pkg/operator/ceph/cluster/mon/mon.go @@ -630,7 +630,8 @@ func scheduleMonitor(c *Cluster, mon *monConfig) (*apps.Deployment, error) { d.Spec.Template.Spec.Containers[0].Image = c.rookVersion d.Spec.Template.Spec.Containers[0].Command = []string{"sleep"} // sleep responds to signals so we don't need to wrap it d.Spec.Template.Spec.Containers[0].Args = []string{"3600"} - // remove the liveness probe on the canary pod + // remove the startup and liveness probes on the canary pod + d.Spec.Template.Spec.Containers[0].StartupProbe = nil d.Spec.Template.Spec.Containers[0].LivenessProbe = nil // setup affinity settings for pod scheduling