Merge pull request #9889 from rook/mergify/bp/release-1.8/pr-9888

mon: Disable startup probe on canary pods (backport #9888)
This commit is contained in:
mergify[bot] authored and GitHub committed 2022-03-10 20:19:03 +00:00
commit 7bf915a1be
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