Remove initialDelaySeconds from Postgres liveness and readiness probes by increasing the startupProbe.failureTheshold by 5

This commit is contained in:
Ben Banfield-Zanin committed 2025-05-16 15:31:29 +01:00
1 parent d3d489972f
commit 021d05a045
2 files changed
+7 -7

No files matched your search

+4 -4
View File
@@ -1,5 +1,5 @@
{#
Copyright 2024 New Vector Ltd
Copyright 2024-2025 New Vector Ltd
SPDX-License-Identifier: AGPL-3.0-only
#}
@@ -32,6 +32,6 @@ essPasswords:
{{- sub_schema_values.serviceMonitors() }}
{{- sub_schema_values.tolerations() }}
{{- sub_schema_values.topologySpreadConstraints() }}
{{- sub_schema_values.probe("liveness", initialDelaySeconds=45, timeoutSeconds=2) }}
{{- sub_schema_values.probe("readiness", initialDelaySeconds=15, timeoutSeconds=2) }}
{{- sub_schema_values.probe("startup") }}
{{- sub_schema_values.probe("liveness", timeoutSeconds=2) }}
{{- sub_schema_values.probe("readiness", timeoutSeconds=2) }}
{{- sub_schema_values.probe("startup", failureThreshold=8) }}
+3 -3
View File
@@ -1919,7 +1919,7 @@ postgres:
failureThreshold: 3
## Number of seconds after the container has started before the probe starts
initialDelaySeconds: 45
initialDelaySeconds: 0
## How often (in seconds) to perform the probe
periodSeconds: 10
@@ -1935,7 +1935,7 @@ postgres:
failureThreshold: 3
## Number of seconds after the container has started before the probe starts
initialDelaySeconds: 15
initialDelaySeconds: 0
## How often (in seconds) to perform the probe
periodSeconds: 10
@@ -1948,7 +1948,7 @@ postgres:
## Configuration of the thresholds and frequencies of the startupProbe
startupProbe:
## How many consecutive failures for the probe to be considered failed
failureThreshold: 3
failureThreshold: 8
## Number of seconds after the container has started before the probe starts
initialDelaySeconds: 0