Skip to content

Commit

Permalink
Update teku chart (#524)
Browse files Browse the repository at this point in the history
* feat(values): Change default storage mode to minimal

* feat(helm): Add checkpoint-sync-url flag

* feat(helm): Update chart version
  • Loading branch information
TobiWo authored Mar 28, 2024
1 parent 1693c5c commit 5241408
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/teku/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.5.6
version: 2.5.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 3 additions & 0 deletions charts/teku/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ spec:
--network={{ .Values.global.network }}
{{- if .Values.initialState }}
--initial-state={{ .Values.initialState }}/eth/v2/debug/beacon/states/finalized
{{- end }}
{{- if .Values.checkpointSyncUrl }}
--checkpoint-sync-url={{ .Values.checkpointSyncUrl }}
{{- end }}
--config-file=/data/teku/config.yaml
--data-beacon-path=/data/teku/beacon
Expand Down
15 changes: 11 additions & 4 deletions charts/teku/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ podAnnotations: {}
# if --data-storage-mode is set to PRUNE
dataStorageArchiveFrequency: "2048"
# Sets the strategy for handling historical chain data
# (Valid values: ARCHIVE, PRUNE)
dataStorageMode: PRUNE
# (Valid values: archive, prune, minimal)
dataStorageMode: minimal
# Store non-canonical blocks
dataStorageNonCanonicalBlocksEnabled: false
# Rest API Settings
Expand All @@ -355,12 +355,19 @@ restApi:
# Enable swagger-docs and swagger-ui endpoints
docsEnabled: false

## If set, teku will download a recent finalized checkpoint state from a beacon node. For more information see here: https://docs.teku.consensys.net/en/latest/HowTo/Get-Started/Checkpoint-Start/
## Note: The newer way to perform a checkpoint sync is using 'checkpointSyncUrl'.
## However, you can still use 'initialState'. If you provide both accidentally, 'checkpointSyncUrl' will be prioritized.

## If set, teku will perform a checkpoint sync. For more information see here: https://docs.teku.consensys.io/reference/cli#checkpoint-sync-url
## Respective public checkpoint sync endpoints can be found here: https://eth-clients.github.io/checkpoint-sync-endpoints/
## It is not recommended to blindly trust any public beacon node.
## Therefore please verify that you are on the correct chain: https://notes.ethereum.org/@launchpad/checkpoint-sync#1-Obtaining-finalized-checkpoint-amp-state-root
##
checkpointSyncUrl: ""

## If set, teku will download a recent finalized checkpoint state from a beacon node. For more information see here: https://docs.teku.consensys.net/en/latest/HowTo/Get-Started/Checkpoint-Start/
## Note:
## Additionally to the checkpoint sync url Teku needs the following path to obtain the finalized state: /eth/v2/debug/beacon/states/finalized
## Additionally to 'checkpointSyncUrl', Teku needs the following path to obtain the finalized state: /eth/v2/debug/beacon/states/finalized
## To keep UX similar across all charts, the path is hardcoded in the statefulset, so you DON'T need to add it here.
##
initialState: ""
Expand Down

0 comments on commit 5241408

Please sign in to comment.