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.