Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make readiness probe optional #397

Merged
merged 3 commits into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions charts/tezos/templates/_containers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,14 @@
name: config-volume
- mountPath: /var/tezos
name: var-volume
{{- if not (eq $.node_vals.readiness_probe false) }}
readinessProbe:
httpGet:
path: /is_synced
port: 31732
{{- end }}
{{- end }}
{{- end }}

{{- define "tezos.container.tezedge" }}
{{- if eq (include "tezos.getNodeImplementation" $) "tezedge" }}
Expand Down
2 changes: 2 additions & 0 deletions charts/tezos/templates/nodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ spec:
{{- include "tezos.container.logger" $ | indent 8 }}
{{- include "tezos.container.metrics" $ | indent 8 }}
{{- include "tezos.container.zerotier" $ | indent 8 }}
{{- if not (eq $.node_vals.readiness_probe false) }}
nicolasochem marked this conversation as resolved.
Show resolved Hide resolved
{{- include "tezos.container.sidecar" $ | indent 8 }}
{{- end }}
initContainers:
{{- include "tezos.init_container.config_init" $ | indent 8 }}
{{- include "tezos.init_container.zerotier" $ | indent 8 }}
Expand Down
9 changes: 9 additions & 0 deletions charts/tezos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ 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.
## - "instances": a list of nodes to fire up, each is a dictionary defining:
## - "bake_using_account": Account name that should be used for baking.
## - "bake_using_accounts": List of account names that should be used for baking.
Expand Down