Skip to content

Commit

Permalink
Merge branch 'main' into nicolasochem@sequencer_part2
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Feb 15, 2024
2 parents 6af52d2 + 9c93681 commit 460e093
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
9 changes: 7 additions & 2 deletions charts/tezos/templates/_containers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,16 @@
name: tezos-net
- containerPort: 9932
name: metrics
{{- if or (not (hasKey $.node_vals "readiness_probe")) $.node_vals.readiness_probe }}
{{- if or (not (hasKey $.node_vals "bootstrapped_readiness_probe")) $.node_vals.bootstrapped_readiness_probe }}
readinessProbe:
httpGet:
path: /is_synced
port: 31732
{{- else if or (not (hasKey $.node_vals "rpc_readiness_probe")) $.node_vals.rpc_readiness_probe }}
readinessProbe:
httpGet:
path: /version
port: 8732
{{- end }}
{{- end }}
{{- if .resources }}
Expand Down Expand Up @@ -254,7 +259,7 @@
{{- end }}

{{- define "tezos.container.sidecar" }}
{{- if or (not (hasKey $.node_vals "readiness_probe")) $.node_vals.readiness_probe }}
{{- if or (not (hasKey $.node_vals "bootstrapped_readiness_probe")) $.node_vals.bootstrapped_readiness_probe }}
{{- $sidecarResources := dict "requests" (dict "memory" "80Mi") "limits" (dict "memory" "100Mi") -}}
{{- include "tezos.generic_container" (dict "root" $
"type" "sidecar"
Expand Down
21 changes: 12 additions & 9 deletions charts/tezos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,18 @@ accounts: {}
# automatically for you.
# - `node_selector`: Specify a kubernetes node selector in `key: value` format
# for your tezos nodes.
# - `readiness_probe`: Attach a probe to the node. The probe checks whether
# the most recent block is recent enough. If not, the
# services will be unreachable. 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.
# - `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_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.
# - `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 460e093

Please sign in to comment.