Skip to content

Commit 016b918

Browse files
Merge pull request #606 from Deydra71/fix-startup-probe-main
Use dedicated startup probe with higher failure threshold
2 parents ada2819 + 8524769 commit 016b918

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

internal/horizon/deployment.go

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func Deployment(
6868

6969
livenessProbe := formatProbes()
7070
readinessProbe := formatProbes()
71-
startupProbe := formatProbes()
71+
startupProbe := formatStartupProbe()
7272

7373
envVars := getEnvVars(configHash, enabledServices)
7474

@@ -210,6 +210,21 @@ func formatProbes() *corev1.Probe {
210210
}
211211
}
212212

213+
func formatStartupProbe() *corev1.Probe {
214+
215+
return &corev1.Probe{
216+
TimeoutSeconds: 5,
217+
PeriodSeconds: 10,
218+
FailureThreshold: 12,
219+
ProbeHandler: corev1.ProbeHandler{
220+
HTTPGet: &corev1.HTTPGetAction{
221+
Path: horizonDashboardURL,
222+
Port: intstr.FromString(horizonContainerPortName),
223+
},
224+
},
225+
}
226+
}
227+
213228
func (t *TLSRequiredOptions) formatTLSOptions(instance *horizonv1.Horizon) error {
214229

215230
var err error

0 commit comments

Comments
 (0)