From 34d4b009d5ba2941261038460aa0481e3a4c1b15 Mon Sep 17 00:00:00 2001 From: Chao Zhang Date: Thu, 29 Aug 2024 17:47:05 +0200 Subject: [PATCH] Make new probes configurable --- charts/tezos/templates/_containers.tpl | 12 ++---------- charts/tezos/values.yaml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/charts/tezos/templates/_containers.tpl b/charts/tezos/templates/_containers.tpl index 5da4141..1aa6ae8 100644 --- a/charts/tezos/templates/_containers.tpl +++ b/charts/tezos/templates/_containers.tpl @@ -173,19 +173,11 @@ name: metrics {{- if $.node_vals.bootstrapped_startup_probe }} startupProbe: - httpGet: - path: /is_synced - port: 31732 - failureThreshold: 180 - periodSeconds: 10 + {{- toYaml .Values.bootstrappedStartupProbe | indent4 }} {{- end }} {{- if $.node_vals.bootstrapped_liveness_probe }} livenessProbe: - httpGet: - path: /is_synced - port: 31732 - failureThreshold: 30 - periodSeconds: 10 + {{- toYaml .Values.bootstrappedLivenessProbe | indent4 }} {{- end }} {{- if or (not (hasKey $.node_vals "bootstrapped_readiness_probe")) $.node_vals.bootstrapped_readiness_probe }} readinessProbe: diff --git a/charts/tezos/values.yaml b/charts/tezos/values.yaml index c94d5af..f756a4a 100644 --- a/charts/tezos/values.yaml +++ b/charts/tezos/values.yaml @@ -268,6 +268,21 @@ nodes: history_mode: rolling metrics_addr: ["0.0.0.0:9932"] # End nodes +# default startup probe for bootstrapped nodes +bootstrappedStartupProbe: + httpGet: + path: /is_synced + port: 31732 + failureThreshold: 180 + periodSeconds: 10 + +# default liveness probe for nodes +bootstrappedLivenessProbe: + httpGet: + path: /is_synced + port: 31732 + failureThreshold: 30 + periodSeconds: 10 # Bakers # This deploys "remote bakers" that only bake through RPC.