Skip to content

Commit

Permalink
make each probe configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
puppetninja committed Aug 29, 2024
1 parent 7f23405 commit bda1914
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
14 changes: 9 additions & 5 deletions charts/tezos/templates/_containers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -171,24 +171,28 @@
name: tezos-net
- containerPort: 9932
name: metrics
{{- if or (not (hasKey $.node_vals "bootstrapped_probe")) $.node_vals.bootstrapped_probe }}
{{- if $.node_vals.bootstrapped_startup_probe }}
startupProbe:
httpGet:
path: /is_synced
port: 31732
failureThreshold: 180
periodSeconds: 10
readinessProbe:
{{- end }}
{{- if $.node_vals.bootstrapped_liveness_probe }}
livenessProbe:
httpGet:
path: /is_synced
port: 31732
successThreshold: 1
failureThreshold: 30
periodSeconds: 10
livenessProbe:
{{- end }}
{{- if or (not (hasKey $.node_vals "bootstrapped_readiness_probe")) $.node_vals.bootstrapped_readiness_probe }}
readinessProbe:
httpGet:
path: /is_synced
port: 31732
failureThreshold: 30
successThreshold: 1
periodSeconds: 10
{{- else if or (not (hasKey $.node_vals "rpc_readiness_probe")) $.node_vals.rpc_readiness_probe }}
readinessProbe:
Expand Down
24 changes: 15 additions & 9 deletions charts/tezos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,21 @@ accounts: {}
# - `rpc_readiness_probe`: Attach a probe to the node. The probe checks whether
# the RPC service is responsive, which should always be the
# case. Defaults to true.
# - `bootstrapped_probe`: Adds startup/readiness/liveness probe to check checks
# whether the most recent block is less than 600 seconds old.
# Overrides `rpc_readiness_probe`. Defaults to True.
# True is good for RPC nodes, private nodes, and
# self-contained private chains.
# Recommended to set to False when bootstrapping a new
# chain with external bakers, such as a new test chain.
# Otherwise, the chain may become unreachable externally
# while waiting for other nodes to come online.
# - `bootstrapped_readiness_probe`: Checks whether the most recent block is less than
# 600 seconds old.
# Overrides `rpc_readiness_probe`. Defaults to True.
# True is good for RPC nodes, private nodes, and
# self-contained private chains.
# Recommended to set to False when bootstrapping a new
# chain with external bakers, such as a new test chain.
# Otherwise, the chain may become unreachable externally
# while waiting for other nodes to come online.
# - `bootstrapped_startup_probe`: Adds additional startup probe to check checks
# whether the most recent block is less than 600 seconds old.
# Defaults to False.
# - `bootstrapped_liveness_probe`: Adds additional liveness probe to check checks
# whether the most recent block is less than 600 seconds old.
# Defaults to False.
# - `instances`: A list of nodes to fire up, each is a dictionary defining:
# - `bake_using_accounts`: List of account names that should be used for baking.
# - `authorized_keys`: List of account names that should be used as keys to
Expand Down

0 comments on commit bda1914

Please sign in to comment.