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 <tnielsen@redhat.com>
(cherry picked from commit 22dea0a1ef)
This commit is contained in:
Travis Nielsen authored and mergify-bot committed 2022-03-10 19:54:24 +00:00
1 parent a1687ec941
commit 87f9e81c8a
1 file changed
+2 -1
+2 -1
View File
@@ -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