dv-pod
by Obol Labs
A Helm chart for deploying a single distributed validator pod consisting of a Charon middleware client and validator client.
About this chart
DV-Pod
A Helm chart for deploying a single distributed validator pod consisting of a Charon middleware client and validator client.
Homepage: https://docs.obol.org/
Source Code
For a quick start guide, please refer to QUICKSTART.md.
How to use this chart
A distributed validator cluster is composed of the following containers:
- Single execution layer client
- Single consensus layer client
- Number of Distributed Validator clients [This chart]
- Number of Validator clients
- Prometheus, Grafana and Jaeger clients for monitoring this cluster.
Choosing a mode
Each operator in a DV cluster runs one dv-pod release. How the node joins its cluster is set by mode:
mode | Use when | Required values |
|---|---|---|
auto (default) | Existing installs; infers one of the modes below from the values you set | as for the inferred mode |
launchpad | Operators create/accept the cluster on launchpad.obol.org | charon.operatorAddress |
definition | Someone ran charon create dkg and shares the definition (config hash, URL or file) | exactly one of dkg.definition.configHash, .url, .configMap |
lock | You already have a cluster-lock.json and key shares | configMaps.clusterLock (+ validatorClient.keystores.secretName) |
lockHash | Same, but the lock is over 1MB | charon.lockHash (+ validatorClient.keystores.secretName) |
Missing or conflicting values fail at helm install time with a message naming the value to set.
In launchpad and definition modes the pod runs these init containers before charon starts:
dkg-sidecarwaits until a fully signed definition containing this node's ENR is available.charon-dkg(dkg.runner: charon, the default) runscharon dkgwith the chart's own charonimage, so the DKG always uses the same charon version ascharon run. It retries until every operator is online, and never deletes anything from the data directory.dkg-reportrecords the result in the status ConfigMap.- Validator key import for the chosen validator client.
dkg.runner: sidecar keeps the pre-0.22 behaviour, where the sidecar runs the charon binary bundled in its image.
[!IMPORTANT]
dkg.runner: charon,mode: definitionand status reporting needobolnetwork/charon-dkg-sidecar:1.1.0(the chart default). Until that tag is published, pods using it stay inErrImagePull; pin an older tag withcharon.dkgSidecar.image.taganddkg.runner: sidecarif you need the legacy flow meanwhile.
Reading the ENR and DKG progress (no Secret access needed)
The ENR job writes this node's public ENR to the ConfigMap <fullname>-enr, and the sidecar keeps the ConfigMap
<fullname>-dkg-status up to date (phase, message, signatures, configHash, lockHash, ...):
kubectl get configmap my-dv-pod-enr -n dv-pod -o jsonpath='{.data.enr}'
kubectl get configmap my-dv-pod-dkg-status -n dv-pod -o jsonpath='{.data.phase}{"\n"}{.data.message}{"\n"}'
Phases: Initializing, WaitingForInvite, WaitingForSignatures, DefinitionReady, RunningDKG, Complete,
LockPresent, Failed. To let an agent in another namespace watch these two ConfigMaps (get/watch by name only,
never Secrets), list its service account in statusReaders.
Launchpad route
helm upgrade --install my-dv-pod obol/dv-pod -n dv-pod --create-namespace \
--set mode=launchpad \
--set network=hoodi \
--set 'charon.beaconNodeEndpoints[0]=<BEACON_NODE_ENDPOINT>' \
--set charon.operatorAddress=0xYOUR_OPERATOR_ADDRESS
Paste the ENR (above) on the Launchpad when creating or accepting the cluster, and sign with the operator
wallet; the chart never signs. Once every operator has signed, the DKG runs automatically. Set
charon.dkgSidecar.targetConfigHash to join one specific definition.
Direct route (cluster definition)
Collect each operator's ENR (kubectl get cm <release>-enr ...), create the definition and share its config hash:
charon create dkg --network=hoodi --num-validators=1 \
--fee-recipient-addresses=0x... --withdrawal-addresses=0x... \
--operator-enrs=enr:-...,enr:-...,enr:-...,enr:-... --publish
Each operator then installs with the same definition; no operator address is needed:
helm upgrade --install my-dv-pod obol/dv-pod -n dv-pod --create-namespace \
--set mode=definition \
--set dkg.definition.configHash=0xCONFIG_HASH \
--set network=hoodi \
--set 'charon.beaconNodeEndpoints[0]=<BEACON_NODE_ENDPOINT>'
Use dkg.definition.url for a definition served over HTTPS, or dkg.definition.configMap for a file
(kubectl create configmap cluster-definition --from-file=cluster-definition.json). The sidecar checks that this
node's ENR is in the definition. Definitions created with operator addresses still need every operator to sign
on the Launchpad; ENR-only definitions don't. See values-examples/definition.yaml.
Obol Stack
In the Obol Stack use the in-cluster beacon node, the Stack's Prometheus and let the Hermes agent watch progress. values-examples/obol-stack.yaml sets:
- no
charon.beaconNodeEndpoints: empty means the Stack's node fornetwork(http://ethereum-beacon.ethereum-<network>.svc.cluster.local:5052, created byobol network install ethereum --network <network>). Set it if your deployment has another id (obol network list). serviceMonitor.enabled: truewithserviceMonitor.labels.release: monitoringstatusReaders: [{namespace: hermes-obol-agent, serviceAccount: hermes}]charon.builderApi: false: the Stack runs no MEV-boost (local blocks until Gloas, in-protocol builder bids after it)
obol helm upgrade --install my-dv-pod obol/dv-pod -n dv-pod --create-namespace \
-f obol-stack.yaml --set charon.operatorAddress=0xYOUR_OPERATOR_ADDRESS
Import an existing cluster (mode: lock)
If you already have private keys and charon artifacts from a central key creation or a DKG ceremony, provide them to skip the DKG entirely.
From a charon create cluster output (a ./cluster/nodeN folder structure)
./cluster/
├── node0/
│ ├── charon-enr-private-key
│ ├── cluster-lock.json
│ └── validator_keys/
│ ├── keystore-0.json
│ └── keystore-0.txt
└── ...
To deploy node0:
kubectl create secret generic node0-enr --from-file=cluster/node0/charon-enr-private-key
kubectl create secret generic validator-keys \
--from-file=cluster/node0/validator_keys/keystore-0.json --from-file=cluster/node0/validator_keys/keystore-0.txt
kubectl create configmap cluster-lock --from-file=cluster/node0/cluster-lock.json
helm install my-dv-pod obol/dv-pod \
--set mode=lock \
--set charon.enr.existingSecret.name=node0-enr \
--set configMaps.clusterLock=cluster-lock \
--set validatorClient.keystores.secretName=validator-keys
From a DKG output (a .charon/ folder)
kubectl create secret generic my-dv-pod-enr --from-file=.charon/charon-enr-private-key
kubectl create secret generic validator-keys \
--from-file=.charon/validator_keys/keystore-0.json --from-file=.charon/validator_keys/keystore-0.txt
kubectl create configmap cluster-lock --from-file=.charon/cluster-lock.json
helm install my-dv-pod obol/dv-pod \
--set mode=lock \
--set charon.enr.existingSecret.name=my-dv-pod-enr \
--set configMaps.clusterLock=cluster-lock \
--set validatorClient.keystores.secretName=validator-keys
Also set network and charon.beaconNodeEndpoints (see Install the chart). The ENR secret
must be the identity listed in the lock, in the release namespace; the ENR job adds the public enr field if missing.
ENR identity
The ENR private key is the node's charon identity and must never change once it is in a cluster. Its Secret is,
in order: charon.enr.existingSecret.name; on upgrade, whatever Secret the release already uses; the legacy shared
charon-enr-private-key (secrets.defaultEnrPrivateKey) if it exists and no other StatefulSet uses it; otherwise a
new per-release <fullname>-enr-key. Two releases in one namespace therefore never share an identity. The ENR job
never overwrites an existing key. Under helm template/GitOps (no lookup), the job performs the same legacy check
at runtime and copies an existing identity into <fullname>-enr-key instead of generating a new one.
Upgrading from chart < 0.22
- Do not upgrade before
obolnetwork/charon-dkg-sidecar:1.1.0is published (or pincharon.dkgSidecar.image.tag): the upgrade restarts the pod, and the sidecar init containers run on every start, even with a lock present. - Existing installs keep
mode: auto, which infers the same behaviour as before, and keep their ENR Secret. dkg.runnernow defaults tocharon. For a node that already has its cluster-lock this changes nothing at runtime (all DKG steps skip). For a node still waiting for its DKG, all operators should use the same runner and charon version; setdkg.runner: sidecarto keep the old flow.charon.builderApi/charon.directConnectionEnabledare booleans;"true"/"false"strings still work, and"false"now really disables them (previously any non-empty string enabled MEV flags on the validator client).- The schema is strict: unknown keys are rejected. Remove typos and keys the chart never had.
- The readiness probe (
/readyz) is on; the charon Service publishes not-ready addresses so peers and external validator clients are unaffected. - PVCs are retained when the StatefulSet is deleted or scaled down (
persistence.retentionPolicy). - The pod no longer mounts a service account token into charon or the validator client.
Upgrading from chart < 0.23
- The charon container no longer sees the key shares: an empty read-only tmpfs covers
/charon-data/validator_keys(charon runnever reads them). Aprepare-charon-datainit container creates that directory oncecluster-lock.jsonexists. Back up from thevalidator-clientcontainer (below):kubectl cp … -c dv-podnow copies an emptyvalidator_keys/. - Charon commands that need the key shares (
charon exit sign,charon edit …) no longer work throughkubectl exec -c dv-pod; run them from a backup copy ofcharon-datainstead. - The upgrade only replaces a pod that is Ready: the StatefulSet's rolling update waits on an unready pod, which
then keeps the old spec, with charon still seeing the key shares. After upgrading, check that this prints
nothing, and if it lists files, delete the pod (
kubectl delete pod my-dv-pod-0 -n dv-pod) so it restarts on the new spec:kubectl exec my-dv-pod-0 -n dv-pod -c dv-pod -- ls -A /charon-data/validator_keys containerSecurityContextnow setsrunAsNonRoot,runAsUser: 1000andseccompProfile: RuntimeDefault. If you override it, keep charon non-root and withoutCAP_SYS_ADMIN, or it could unmount the tmpfs.helm upgrade --reuse-valueskeeps the old release's values, including the oldcontainerSecurityContext; use--reset-then-reuse-values(Helm 3.14+) to pick up the new defaults.
Backing up charon-data
After the DKG, /charon-data on the charon-data-<fullname>-0 PVC holds cluster-lock.json, validator_keys/
(key shares) and deposit-data*.json. Back it up off the cluster before activating validators. Copy it from the
validator-client container; the charon container (dv-pod) can't see the key shares:
kubectl cp dv-pod/my-dv-pod-0:/charon-data ./my-dv-pod-charon-data -c validator-client
# Obol Stack: obol kubectl cp dv-pod/my-dv-pod-0:/charon-data ./my-dv-pod-charon-data -c validator-client
ls my-dv-pod-charon-data/validator_keys # must list keystore-*.json; if empty, the backup has no key shares
tar czf my-dv-pod-charon-data.tgz my-dv-pod-charon-data && rm -rf my-dv-pod-charon-data # store encrypted
With validatorClient.enabled: false, or a validator client image without tar (Prysm's has none), mount the PVC read-only in a
short-lived pod on the same node and copy from that:
NODE=$(kubectl get pod my-dv-pod-0 -n dv-pod -o jsonpath='{.spec.nodeName}')
kubectl run charon-data-backup -n dv-pod --restart=Never --image=busybox:1.37.0 --overrides='{
"spec": {"nodeName": "'"$NODE"'", "securityContext": {"runAsUser": 1000, "runAsNonRoot": true},
"containers": [{"name": "backup", "image": "busybox:1.37.0", "command": ["sleep", "600"],
"securityContext": {"allowPrivilegeEscalation": false, "capabilities": {"drop": ["ALL"]}},
"volumeMounts": [{"name": "data", "mountPath": "/charon-data", "readOnly": true}]}],
"volumes": [{"name": "data", "persistentVolumeClaim": {"claimName": "charon-data-my-dv-pod-0", "readOnly": true}}]}}'
kubectl wait -n dv-pod --for=condition=Ready pod/charon-data-backup
kubectl cp dv-pod/charon-data-backup:/charon-data ./my-dv-pod-charon-data
kubectl delete pod -n dv-pod charon-data-backup
Also keep the ENR Secret (kubectl get secret <name> -o yaml). The PVCs and the ENR Secret survive
helm uninstall; delete them explicitly only once you no longer need this node's keys.
Direct peer connections
Peers connect via Obol relays by default. To accept direct connections from outside the cluster, enable
p2pService (LoadBalancer or NodePort, see values.yaml) and advertise the address with charon.p2pExternalIp or
`
Deploy dv-pod with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dv-pod 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdv-pod is pinned at v0.23.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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