Skip to content

Commit

Permalink
Make new probes configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
puppetninja committed Aug 29, 2024
1 parent 71cc395 commit 34d4b00
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
12 changes: 2 additions & 10 deletions charts/tezos/templates/_containers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
15 changes: 15 additions & 0 deletions charts/tezos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 34d4b00

Please sign in to comment.