charon

by joaquinito2051

Helm chartv0.1.1App 0.11.0

Charon is an open-source Ethereum Distributed validator client written in golang.

About this chart

Charon

Charon is an open-source Ethereum Distributed validator client written in golang.

Charon Helm Chart

  • Installs Charon distributed validator client node Charon

Get Repo Info

$ helm repo add stakewise https://charts.stakewise.io
$ helm install charon stakewise/charon

See helm repo for command documentation.

Prerequisites

The charon cluster keys must be generated beforehand and populated to your Kubernetes cluster as secrets in the same namespace where the chart will get deployed.

These are the secrets that should exist for a node name node0: node0-charon-enr-private-key node0-cluster-lock node0-validators

Installing the Chart

To install the chart with the release name node0:

helm install node0 obol/charon --set charon.config.beaconNodeEndpoints=<BEACON_NODES_ENDPOINTS>

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the Charon chart and their default values.

ParameterDescriptionDefault
global.imagePullSecretsSecret name to pull private images.[]
global.serviceAccount.createCreate charon service account.true
global.serviceAccount.annotationsCharon service account annotations.{}
global.serviceAccount.nameCharon service account name.""
global.livenessProbe.enabledEnable liveness probe.true
global.readinessProbe.enabledEnable readiness probe.true
image.repositoryCharon image repository."ghcr.io/obolnetwork/charon"
image.pullPolicyCharon image pull policy."IfNotPresent"
image.tagCharon image version."v0.11.0"
imagePullSecretsCharon image pull secret.[]
nameOverrideChart name override.""
fullnameOverrideChart full name override.""
podAnnotationsPod annotations.{}
podSecurityContext.fsGroupPod security context FsGroup.1000
podSecurityContext.runAsUserPod security context runAsUser.1000
securityContextDeployment securityContext.null
resourcesCPU/Memory resource requests/limits{}
nodeSelectorKubernetes node selector.{}
tolerationsKubernetes tolerations.{}
affinityKubernetes pod affinity.{}
sessionAffinity.enabledEnable aession afinity.false
sessionAffinity.timeoutSecondsSet session affinity timeout in seconds.86400
priorityClassNameSet deployment priority class name.""
service.svcHeadlessRun charon service as headless.false
service.typeCharon service type."ClusterIP"
service.ports.validatorApi.nameCharon validator API port name."validator-api"
service.ports.validatorApi.portCharon validator API port.3600
service.ports.validatorApi.protocolCharon validator API port protocol."TCP"
service.ports.validatorApi.targetPortCharon validator API target port.3600
service.ports.p2pTcp.nameCharon p2p tcp port name."p2p-tcp"
service.ports.p2pTcp.portCharon p2p tcp port.3610
service.ports.p2pTcp.protocolCharon p2p tcp protocol port."TCP"
service.ports.p2pTcp.targetPortCharon p2p tcp target port.3610
service.ports.monitoring.nameCharon monitoring port name."monitoring"
service.ports.monitoring.portCharon monitoring port.3620
service.ports.monitoring.protocolCharon monitoring port protocol."TCP"
service.ports.monitoring.targetPortCharon monitoring target port.3620
service.ports.p2pUdp.nameCharon p2p udp port name."p2p-udp"
service.ports.p2pUdp.portCharon p2p udp port.3630
service.ports.p2pUdp.protocolCharon p2p udp port protocol."UDP"
service.ports.p2pUdp.targetPortCharon p2p udp target port.3630
livenessProbe.httpGet.pathCharon livenessProbe http path."/metrics"
livenessProbe.httpGet.portCharon livenessProbe http port.3620
livenessProbe.initialDelaySecondsCharon livenessProbe initial delay in seconds.10
livenessProbe.periodSecondsCharon livenessProbe period in seconds.5
readinessProbe.httpGet.pathCharon readinessProbe http path."/metrics"
readinessProbe.httpGet.portCharon readinessProbe http port.3620
readinessProbe.initialDelaySecondsCharon readinessProbe initial delay in seconds.5
readinessProbe.periodSecondsCharon readinessProbe period in seconds.3
podDisruptionBudget.enabledEnable podDisruptionBudget.false
podDisruptionBudget.maxUnavailablepodDisruptionBudget max unavailable replicas.1
charon.config.validatorApiAddressListening address (ip and port) for validator-facing traffic proxying the beacon-node API"0.0.0.0:3600"
charon.config.p2pTcpAddressComma-separated list of listening TCP addresses (ip and port) for libP2P traffic. Empty default doesn't bind to local port therefore only supports outgoing connections."0.0.0.0:3610"
charon.config.monitoringAddressListening address (ip and port) for the monitoring API (prometheus, pprof)."0.0.0.0:3620"
charon.config.p2pUdpAddressListening UDP address (ip and port) for discv5 discovery. Empty default disables discv5 discovery."0.0.0.0:3630"
charon.config.p2pBootnodeRelayEnables using bootnodes as libp2p circuit relays. Useful if some charon nodes are not publicly accessible.true
charon.config.p2pBootnodesComma-separated list of discv5 bootnode URLs or ENRs."http://bootnode.lb.gcp.obol.tech:3640/enr"
charon.config.beaconNodeEndpointsComma separated list of one or more beacon node endpoint URLs.""
charon.config.charonLockFileThe path to the cluster lock file defining distributed validator cluster."/charon/cluster-lock/cluster-lock.json"
charon.config.privateKeyFileThe path to the charon enr private key file."/charon/charon-enr-private-key/charon-enr-private-key"
charon.config.logLevelLog level; debug, info, warn or error"debug"
charon.config.p2pExternalHostnameThe DNS hostname advertised by libp2p. This may be used to advertise an external DNS.""
charon.config.noVerifyDisables cluster definition and lock file verification.true
charon.config.jaegerAddressListening address for jaeger tracing."jaeger:6831"
charon.config.jaegerServiceService name used for jaeger tracing."charon"
charon.secrets.validatorKeysValidators Keys Kubernetes secret name."validators"
charon.secrets.enrPrivateKeyENR Private Key Kubernetes secret name."charon-enr-private-key"
charon.secrets.clusterlockCluster Lock Kubernetes secret name."cluster-lock"

Deploy charon with OpenTenant

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