Skip to content

Commit 382d3f3

Browse files
committed
Make probe thresholds and frequencies explicit
1 parent d6ad50e commit 382d3f3

File tree

6 files changed

+247
-233
lines changed

6 files changed

+247
-233
lines changed

charts/matrix-stack/source/common/sub_schema_values.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ labels: {}
276276
{{ (credential("PostgreSQL password", "password", commented=True) | indent(2)) }}
277277
{%- endmacro %}
278278

279-
{% macro probe(type, failureThreshold=none, initialDelaySeconds=none, periodSeconds=none, successThreshold=none, timeoutSeconds=none) %}
279+
{# The default values are the k8s defaults. We could omit but lets make them explicit. #}
280+
{% macro probe(type, failureThreshold=3, initialDelaySeconds=0, periodSeconds=10, successThreshold=1, timeoutSeconds=1) %}
280281
## Configuration of the thresholds and frequencies of the {{ type }}Probe
281282
{%- if failureThreshold is none and initialDelaySeconds is none and periodSeconds is none and successThreshold is none and timeoutSeconds is none %}
282283
# {{ type }}Probe:

charts/matrix-stack/source/element-web.yaml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ replicas: 1
3030
{{- sub_schema_values.serviceAccount() -}}
3131
{{- sub_schema_values.tolerations() -}}
3232
{{- sub_schema_values.topologySpreadConstraints() }}
33-
{{- sub_schema_values.probe("liveness", failureThreshold=3, periodSeconds=10) }}
34-
{{- sub_schema_values.probe("readiness", failureThreshold=3, periodSeconds=3) }}
35-
{{- sub_schema_values.probe("startup", failureThreshold=3, initialDelaySeconds=2, periodSeconds=3) }}
33+
{{- sub_schema_values.probe("liveness") }}
34+
{{- sub_schema_values.probe("readiness", periodSeconds=3) }}
35+
{{- sub_schema_values.probe("startup", initialDelaySeconds=2, periodSeconds=3) }}

charts/matrix-stack/source/matrixAuthenticationService.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ privateKeys:
4242
{{ sub_schema_values.workloadAnnotations() }}
4343
{{ sub_schema_values.serviceMonitors() }}
4444
{{ sub_schema_values.extraEnv() }}
45-
{{ sub_schema_values.probe("liveness", failureThreshold=3) }}
46-
{{ sub_schema_values.probe("readiness", failureThreshold=3) }}
45+
{{ sub_schema_values.probe("liveness") }}
46+
{{ sub_schema_values.probe("readiness") }}
4747
{{ sub_schema_values.probe("startup", initialDelaySeconds=5) }}

charts/matrix-stack/source/synapse/synapse_sub_schema_values.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ SPDX-License-Identifier: AGPL-3.0-only
3232
## If omitted the global Synapse resources are used
3333
# resources: {}
3434

35-
{{- sub_schema_values.probe("liveness", failureThreshold=3, periodSeconds=6, timeoutSeconds=2) | indent(2) }}
36-
{{- sub_schema_values.probe("readiness", failureThreshold=3, periodSeconds=2, successThreshold=2, timeoutSeconds=2) | indent(2) }}
35+
{{- sub_schema_values.probe("liveness", periodSeconds=6, timeoutSeconds=2) | indent(2) }}
36+
{{- sub_schema_values.probe("readiness", periodSeconds=2, successThreshold=2, timeoutSeconds=2) | indent(2) }}
3737
{{- sub_schema_values.probe("startup", failureThreshold=21, periodSeconds=2) | indent(2) }}
3838
{%- endmacro %}

0 commit comments

Comments
 (0)