relay

by Offchain Labs

Helm chartv0.7.19App v3.12.2-5f02f3fMITVerified publisher

A Helm chart for Arbitrum Nitro relays

About this chart

Relay

A Helm chart for Arbitrum Nitro Relays. For full details on running a feed relay, please see the official Arbitrum Documentation.

Quickstart

helm repo add offchainlabs https://charts.arbitrum.io
helm install <my-release> offchainlabs/relay

Required Parameters

Chart defaults are for launching an Arbitrum One relay. At a minimum, you must provide a feed input url.

helm install <my-release> offchainlabs/relay \
--set configmap.data.node.feed.input.url=wss://arb1.arbitrum.io/feed

Examples

Running a relay for a network other than Arbitrum One requires setting the chain id. For instance, to run a relay for Arbitrum Sepolia.

helm install <my-release> offchainlabs/relay \
--set configmap.data.chain.id=421614 \
--set configmap.data.node.feed.input.url=wss://sepolia-rollup.arbitrum.io/feed

Parameters

Relay

NameDescriptionValue
lifecycleLifecycle hooks configuration{}
extraEnvAdditional environment variables for the container{}
replicaCountNumber of replicas to deploy1
image.repositoryDocker image repositoryoffchainlabs/nitro-node
image.pullPolicyDocker image pull policyAlways
image.tagDocker image tag ovverrides the chart appVersion""
imagePullSecretsDocker registry pull secret[]
nameOverrideString to partially override relay fullname""
fullnameOverrideString to fully override relay fullname""
autoscaling.enabledEnable autoscalingfalse
autoscaling.minReplicasMinimum number of replicas1
autoscaling.maxReplicasMaximum number of replicas6
autoscaling.averageCpuUtilizationAverage CPU utilization75
autoscaling.averageMemoryUtilizationAverage memory utilization75
autoscaling.scaleUpPercentPercent to scale up100
autoscaling.scaleUpPeriodSecondsPeriod to scale up30
autoscaling.scaleUpstabilizationWindowSecondsStabilization window to scale up30
autoscaling.scaleDownPercentPercent to scale down10
autoscaling.scaleDownPeriodSecondsPeriod to scale down600
autoscaling.scaleDownstabilizationWindowSecondsStabilization window to scale down600
commandOverrideCommand override for the relay container{}
livenessProbe.enabledEnable built in liveness probetrue
livenessProbe.httpGet.pathPath for liveness probe/livenessprobe
livenessProbe.httpGet.portPort for liveness probefeed
livenessProbe.initialDelaySecondsInitial delay for liveness probe10
livenessProbe.periodSecondsPeriod for liveness probe1
readinessProbe.enabledEnable built in readiness probetrue
readinessProbe.tcpSocket.portPort for readiness probefeed
readinessProbe.initialDelaySecondsInitial delay for readiness probe20
readinessProbe.periodSecondsPeriod for readiness probe1
startupProbe.enabledEnable built in startup probefalse
serviceMonitor.enabledEnable prometheus service monitorfalse
serviceMonitor.fallbackScrapeProtocolSet the fallback scrape protocolPrometheusText0.0.4
serviceMonitor.portNamePort name for prometheus service monitormetrics
serviceMonitor.pathPath for prometheus service monitor/debug/metrics/prometheus
serviceMonitor.intervalInterval for prometheus service monitor5s
serviceMonitor.relabelingsAdd relabelings for the metrics being scraped[]
perReplicaService.enabledEnable per replica servicefalse
perReplicaService.publishNotReadyAddressesPublish not ready addressesfalse
headlessService.enabledEnable headless servicetrue
headlessService.publishNotReadyAddressesPublish not ready addressestrue
pdb.enabledEnable pod disruption budgetfalse
pdb.minAvailableMinimum number of available pods50%
pdb.maxUnavailableMaximum number of unavailable pods""
serviceAccount.createCreate a service accounttrue
serviceAccount.annotationsAnnotations for the service account{}
serviceAccount.nameName of the service account""
podAnnotationsAnnotations for the pod{}
podSecurityContext.fsGroupGroup id for the pod1000
podSecurityContext.runAsGroupGroup id for the user1000
podSecurityContext.runAsNonRootRun as non roottrue
podSecurityContext.runAsUserUser id for the user1000
podSecurityContext.fsGroupChangePolicyPolicy for the fs groupOnRootMismatch
securityContextSecurity context for the container{}
priorityClassNamePriority class name for the pod""
service.typeService typeClusterIP
resourcesResources for the container{}
nodeSelectorNode selector for the pod{}
tolerationsTolerations for the pod[]
topologySpreadConstraintsTopology spread constraints for the pod[]
affinityAffinity for the pod{}

Relay Configmap

NameDescriptionValue
configmap.enabledEnable configmaptrue
configmap.dataSee Configuration Options for the full list of options
configmap.data.chain.idChain id42161
configmap.data.conf.env-prefixEnvironment variable prefixNITRO
configmap.data.log-typeLog typejson
configmap.data.metricsEnable metricsfalse
configmap.data.metrics-server.addrMetrics server address0.0.0.0
configmap.data.metrics-server.portMetrics server port6070
configmap.data.node.feed.input.urlFeed input url""
configmap.data.node.feed.input.reconnect-initial-backoffFeed input reconnect initial backoff50ms
configmap.data.node.feed.input.reconnect-maximum-backoffFeed input reconnect maximum backoff800ms
configmap.data.node.feed.input.timeoutFeed input timeout10s
configmap.data.node.feed.output.addrFeed output address0.0.0.0
configmap.data.node.feed.output.portFeed output port9642

Configuration Options

The following table lists the exhaustive configurable parameters that can be applied as part of the configmap (nested under configmap.data) or as standalone cli flags.

OptionDescriptionDefault
chain.iduint L2 chain IDNone
conf.dumpprint out currently active configuration fileNone
conf.env-prefixstring environment variables with given prefix will be loaded as configuration valuesNone
conf.filestrings name of configuration fileNone
conf.max-versionstring highest nitro version this configuration supports, as a semantic version (e.g. "v3.10.0"); a release build newer than this exits at startup (empty = no maximum)None
conf.min-versionstring lowest nitro version this configuration supports, as a semantic version (e.g. "v3.9.0"); a release build older than this exits at startup (empty = no minimum)None
conf.reload-intervalduration how often to reload configuration (0=disable periodic reloading)None
conf.s3.access-keystring S3 access key for fetching the node configuration file from S3None
conf.s3.bucketstring S3 bucket containing the node configuration fileNone
conf.s3.object-keystring S3 object key of the node configuration file (JSON format)None
conf.s3.regionstring S3 region of the bucket containing the node configuration fileNone
conf.s3.secret-keystring S3 secret key for fetching the node configuration file from S3 (triggers S3 config loading)None
conf.stringstring configuration as JSON stringNone
log-levelstring log level, valid

Deploy relay with OpenTenant

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