nethermind

by ethPandaOps

Helm chartv1.1.4Verified publisher

Nethermind is an Ethereum execution layer implementation created with the C# .NET tech stack, running on all major platforms including ARM.

About this chart

nethermind

Nethermind is an Ethereum execution layer implementation created with the C# .NET tech stack, running on all major platforms including ARM.

Homepage: https://nethermind.io/

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.
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_config;\nif [ ! -f /data/devnet_config/genesis.json ]; then\n echo \"Downloading devnet configuration files...\";\n\n echo \"Downloading chainspec.json from {{ tpl .Values.devnet.urls.genesisJson . }}\"\n wget -O /data/devnet_config/genesis.json \"{{ tpl .Values.devnet.urls.genesisJson . }}\"\n\n echo \"Downloading enodes.txt from {{ tpl .Values.devnet.urls.elBootnode . }}\"\n wget -O /data/devnet_config/enodes.txt \"{{ tpl .Values.devnet.urls.elBootnode . }}\"\n\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/chainspec.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_config;\nif [ ! -f /data/devnet_config/genesis.json ]; then\n echo \"Downloading devnet configuration files...\";\n\n echo \"Downloading chainspec.json from {{ tpl .Values.devnet.urls.genesisJson . }}\"\n wget -O /data/devnet_config/genesis.json \"{{ tpl .Values.devnet.urls.genesisJson . }}\"\n\n echo \"Downloading enodes.txt from {{ tpl .Values.devnet.urls.elBootnode . }}\"\n wget -O /data/devnet_config/enodes.txt \"{{ tpl .Values.devnet.urls.elBootnode . }}\"\n\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/chainspec.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/chainspec.json"ChainSpec JSON URL for execution layer (Nethermind format)
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 nethermind container
extraContainerslist[]Additional containers
extraEnvlist[]Additional env variables
extraPortslist[]Additional ports. Useful when using extraContainers
extraVolumeMountslist[]Additional volume mounts
extraVolumeslist[]Additional volumes
fullnameOverridestring""Overrides the chart's computed fullname
httpPortint8545HTTP Port
image.pullPolicystring"IfNotPresent"nethermind container pull policy
image.repositorystring"nethermind/nethermind"nethermind container image repository
image.tagstring"latest"nethermind 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 used by client as a secret. Change this value.
livenessProbeobjectSee values.yamlLiveness probe
metricsPortint9545Metrics 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"/metrics"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
wsPortint8545WS 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:
  - --config=holesky
  - --Network.MaxActivePeers=60

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. Currently nethermind doesn't allow you to announce a a different discovery port, which would be a requirement to run multiple replicas within the same chart.

replicas: 1

p2pNodePort:
  enabled: true
  port: 31000

Deploy nethermind with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nethermind 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 chartnethermind is pinned at v1.1.4 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