ethrex

by ethPandaOps

Helm chartv0.1.6Verified publisher

Ethrex is an Ethereum execution client developed by Lambda Class. It is written in Rust and designed to be modular, efficient, and fully compatible with Ethereum's Engine API for connecting to consensus layer clients.

About this chart

ethrex

Ethrex is an Ethereum execution client developed by Lambda Class. It is written in Rust and designed to be modular, efficient, and fully compatible with Ethereum's Engine API for connecting to consensus layer clients.

Homepage: https://github.com/lambdaclass/ethrex

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}Affinity configuration for pods
annotationsobject{}Annotations for the StatefulSet
authPortint8551Engine Port (Auth Port)
containerSecurityContextobjectSee values.yamlThe security context for containers
customCommandlist[]Legacy way of overwriting the default command. You may prefer to change defaultCommandTemplate instead.
defaultCommandArgsTemplatestringSee values.yamlTemplate used for the default command arguments
defaultCommandTemplatestringSee values.yamlTemplate used for the default command
devnetobject{"baseUrl":"https://raw.githubusercontent.com/ethpandaops/fusaka-devnets/master/network-configs","enabled":false,"initContainer":[{"command":["sh","-ac","mkdir -p /data/devnet;\nif [ ! -f /data/devnet/genesis.json ]; then\n echo \"Downloading devnet configuration files...\";\n echo \"Downloading genesis.json from {{ tpl .Values.devnet.urls.genesisJson . }}\"\n wget -O /data/devnet/genesis.json \"{{ tpl .Values.devnet.urls.genesisJson . }}\"\n echo \"Downloading enodes.txt from {{ tpl .Values.devnet.urls.elBootnode . }}\"\n wget -O /data/devnet/enodes.txt \"{{ tpl .Values.devnet.urls.elBootnode . }}\"\n echo \"Devnet configuration download complete.\";\nelse\n echo \"Genesis file already exists, skipping download.\";\nfi\n"],"image":"alpine:latest","imagePullPolicy":"IfNotPresent","name":"download-devnet-config","securityContext":{"runAsNonRoot":false,"runAsUser":0},"volumeMounts":[{"mountPath":"/data","name":"storage"}]}],"name":"devnet-3","urls":{"elBootnode":"{{ .Values.devnet.baseUrl }}/{{ .Values.devnet.name }}/metadata/enodes.txt","genesisJson":"{{ .Values.devnet.baseUrl }}/{{ .Values.devnet.name }}/metadata/genesis.json"}}Devnet configuration
devnet.baseUrlstring"https://raw.githubusercontent.com/ethpandaops/fusaka-devnets/master/network-configs"Base URL for devnet configuration files
devnet.enabledboolfalseEnable devnet mode
devnet.initContainerlist[{"command":["sh","-ac","mkdir -p /data/devnet;\nif [ ! -f /data/devnet/genesis.json ]; then\n echo \"Downloading devnet configuration files...\";\n echo \"Downloading genesis.json from {{ tpl .Values.devnet.urls.genesisJson . }}\"\n wget -O /data/devnet/genesis.json \"{{ tpl .Values.devnet.urls.genesisJson . }}\"\n echo \"Downloading enodes.txt from {{ tpl .Values.devnet.urls.elBootnode . }}\"\n wget -O /data/devnet/enodes.txt \"{{ tpl .Values.devnet.urls.elBootnode . }}\"\n echo \"Devnet configuration download complete.\";\nelse\n echo \"Genesis file already exists, skipping download.\";\nfi\n"],"image":"alpine:latest","imagePullPolicy":"IfNotPresent","name":"download-devnet-config","securityContext":{"runAsNonRoot":false,"runAsUser":0},"volumeMounts":[{"mountPath":"/data","name":"storage"}]}]Init container configuration for downloading devnet files
devnet.namestring"devnet-3"Devnet name (e.g., devnet-3)
devnet.urlsobject{"elBootnode":"{{ .Values.devnet.baseUrl }}/{{ .Values.devnet.name }}/metadata/enodes.txt","genesisJson":"{{ .Values.devnet.baseUrl }}/{{ .Values.devnet.name }}/metadata/genesis.json"}URLs for devnet configuration files
devnet.urls.elBootnodestring"{{ .Values.devnet.baseUrl }}/{{ .Values.devnet.name }}/metadata/enodes.txt"Execution layer bootnode URL
devnet.urls.genesisJsonstring"{{ .Values.devnet.baseUrl }}/{{ .Values.devnet.name }}/metadata/genesis.json"Genesis JSON URL for execution layer
dnsPolicystring""DNS policy for pods When hostNetwork is true, this should be set to ClusterFirstWithHostNet
envFromlist[]Additional sources of env variables for the main container, such as Secrets or ConfigMaps
existingJwtSecretstring""Use an existing Secret for the JWT instead of creating one (e.g. managed by an external secrets operator). The Secret must contain the key jwt.hex with the JWT secret as a hex string. When set, jwt is ignored.
extraArgslist[]Extra args for the ethrex container
extraContainerPortslist[]Additional ports for the main container
extraContainerslist[]Additional containers
extraEnvlist[]Additional env variables
extraPortslist[]Additional ports. Useful when using extraContainers or extraContainerPorts
extraVolumeMountslist[]Additional volume mounts
extraVolumeslist[]Additional volumes
fullnameOverridestring""Overrides the chart's computed fullname
homeDirstring"/data"Home directory for ethrex
hostNetworkboolfalseUse the host network namespace. With hostNetwork, the HTTP, WebSocket, engine and metrics listeners bind the pod IP (the node's InternalIP) instead of 0.0.0.0, so they are not exposed on the node's other addresses, such as a public IP. P2P is unaffected. Required for ethrex when using p2pNodePort because ethrex doesn't support separate bind/advertise addresses yet See: https://github.com/lambdaclass/ethrex/issues/5425
httpPortint8545HTTP Port
image.pullPolicystring"IfNotPresent"ethrex container pull policy
image.repositorystring"ghcr.io/lambdaclass/ethrex"ethrex container image repository
image.tagstring"latest"ethrex container image tag
imagePullSecretslist[]Image pull secrets for Docker images
ingress.annotationsobject{}Annotations for Ingress
ingress.enabledboolfalseIngress resource for the HTTP API
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].pathslist[]
ingress.tlslist[]Ingress TLS
initChownData.enabledbooltrueInit container to set the correct permissions to access data directories
initChownData.image.pullPolicystring"IfNotPresent"Container pull policy
initChownData.image.repositorystring"busybox"Container repository
initChownData.image.tagstring"1.34.0"Container tag
initChownData.resourcesobject{}Resource requests and limits
initContainerslist[]Additional init containers
jwtstring"ecb22bc24e7d4061f7ed690ccd5846d7d73f5d2b9733267e12f56790398d908a"JWT secret is attached as a secret object. Change this value.
livenessProbeobjectSee values.yamlLiveness probe
metricsPortint9090Metrics Port
nameOverridestring""Overrides the chart's name
nodeSelectorobject{}Node selector for pods
p2pNodePort.enabledboolfalseExpose P2P port via NodePort
p2pNodePort.initContainer.image.pullPolicystring"IfNotPresent"Container pull policy
p2pNodePort.initContainer.image.repositorystring"lachlanevenson/k8s-kubectl"Container image to fetch nodeport information
p2pNodePort.initContainer.image.tagstring"v1.25.4"Container tag
p2pNodePort.portint31000NodePort to be used
p2pNodePort.portForwardContainer.image.pullPolicystring"IfNotPresent"Container pull policy
p2pNodePort.portForwardContainer.image.repositorystring"alpine/socat"Container image for the port forwarder
p2pNodePort.portForwardContainer.image.tagstring"latest"Container tag
p2pPortint30303P2P Port
persistence.accessModeslist["ReadWriteOnce"]Access mode for the volume claim template
persistence.annotationsobject{}Annotations for volume claim template
persistence.enabledboolfalseUses an EmptyDir when not enabled
persistence.existingClaimstringnilUse an existing PVC when persistence.enabled
persistence.selectorobject{}Selector for volume claim template
persistence.sizestring"20Gi"Requested size for volume claim template
persistence.storageClassNamestringnilUse a specific storage class E.g 'local-path' for local storage to achieve best performance Read more (https://github.com/rancher/local-path-provisioner)
persistentVolumeClaimRetentionPolicyobject{}PersistentVolumeClaim retention policy for the StatefulSet's volumeClaimTemplates (whenDeleted, whenScaled: Retain or Delete). Not rendered when empty, so Kubernetes keeps its default of retaining the PVCs. Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
podAnnotationsobject{}Pod annotations
podDisruptionBudgetobject{}Define the PodDisruptionBudget spec If not set then a PodDisruptionBudget will not be created
podLabelsobject{}Pod labels
podManagementPolicystring"OrderedReady"Pod management policy
priorityClassNamestringnilPod priority class
rbac.clusterRuleslistSee values.yamlRequired ClusterRole rules
rbac.createbooltrueSpecifies whether RBAC resources are to be created
rbac.ruleslistSee values.yamlRequired ClusterRole rules
readinessProbeobjectSee values.yamlReadiness probe
replicasint1Number of replicas
resourcesobject{}Resource requests and limits
secretEnvobject{}Additional env variables injected via a created secret
securityContextobjectSee values.yamlThe security context for pods
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
serviceMonitor.annotationsobject{}Additional ServiceMonitor annotations
serviceMonitor.enabledboolfalseIf true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator
serviceMonitor.intervalstring"1m"ServiceMonitor scrape interval
serviceMonitor.labelsobject{}Additional ServiceMonitor labels
serviceMonitor.namespacestringnilAlternative namespace for ServiceMonitor
serviceMonitor.pathstring"/"Path to scrape
serviceMonitor.relabelingslist[]ServiceMonitor relabelings
serviceMonitor.schemestring"http"ServiceMonitor scheme
serviceMonitor.scrapeTimeoutstring"30s"ServiceMonitor scrape timeout
serviceMonitor.tlsConfigobject{}ServiceMonitor TLS configuration
terminationGracePeriodSecondsint300How long to wait until the pod is forcefully terminated
tolerationslist[]Tolerations for pods
topologySpreadConstraintslist[]Topology Spread Constraints for pods
updateStrategyobject{"type":"RollingUpdate"}Update strategy for the Statefulset
updateStrategy.typestring"RollingUpdate"Update strategy type
wsPortint8546WS Port

Examples

Using an existing JWT Secret

If the JWT secret is managed outside of Helm (e.g. by an external secrets operator such as External Secrets, Vault or Doppler), reference it instead of letting the chart create one. The Secret must contain the JWT secret as a hex string under the key jwt.hex:

existingJwtSecret: my-jwt-secret

Connecting to the holesky test network

extraArgs:
  - --network=holesky

Exposing the P2P service via NodePort

This will make your node accessible via the Internet using a service of type NodePort. When using p2pNodePort.enabled the exposed IP address on your ENR record will be the "External IP" of the node where the pod is running.

Limitations: You can only run a single replica per chart deployment when using p2pNodePort.enabled=true. If you need N nodes, simply deploy the chart N times.

replicas: 1

p2pNodePort:
  enabled: true
  port: 31000

Deploy ethrex with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ethrex on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartethrex is pinned at v0.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply