nitro

by Offchain Labs

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

A Helm chart for Arbitrum Nitro

About this chart

Arbitrum Nitro

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

Quickstart

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

Required Parameters

Chart defaults are for launching an arbitrum one node. At a minimum you must provide a parent chain url, consensus client api url, and an init method(downloading from a snapshot is in the example).

helm install <my-release> offchainlabs/nitro \
--set configmap.data.parent-chain.connection.url=<ETH_RPC_URL> \
--set configmap.data.parent-chain.blob-client.beacon-url=<CONSENSUS_API_URL> \
--set configmap.data.init.url=https://snapshot.arbitrum.foundation/arb1/nitro-genesis.tar

Remove init.url after the snapshot has downloaded and the node has launched. The above snapshot will sync from nitro's gensis block. There are other snapshot options on the Arbitrum Snapshot Page that may be more suitable for your use case. The snapshots and chain state can be quite large, so it is recommended to review the storage defaults and adjust as needed. Particular attention should be paid to the persistence, configmap.data.persistent.chain, and init.download-path parameters.

Examples

Launching a node on another network requires additional configuration. See the Nitro Deployment Options and Configuration Options sections for more details. Here are two examples of networks and the additional configuration they require.

Arbitrum Sepolia

helm install <my-release> offchainlabs/nitro \
--set configmap.data.parent-chain.id=11155111 \
--set configmap.data.parent-chain.connection.url=<SEPOLIA_RPC_URL> \
--set configmap.data.parent-chain.blob-client.beacon-url=<CONSENSUS_API_URL> \
--set configmap.data.chain.id=421614

There are snapshots available to speed up the sync process for Arbitrum Sepolia. See the Arbitrum Snapshot Page for more details.

Xai

configmap:
  data:
    parent-chain:
      id: 42161
      connection:
        url: <ARBITRUM_ONE_RPC_URL>
    chain:
      id: 660279
      name: Xai
      info-json: '[{"chain-id":660279,"parent-chain-id":42161,"parent-chain-is-arbitrum":true,"chain-name":"Xai","chain-config":{"homesteadBlock":0,"daoForkBlock":null,"daoForkSupport":true,"eip150Block":0,"eip150Hash":"0x0000000000000000000000000000000000000000000000000000000000000000","eip155Block":0,"eip158Block":0,"byzantiumBlock":0,"constantinopleBlock":0,"petersburgBlock":0,"istanbulBlock":0,"muirGlacierBlock":0,"berlinBlock":0,"londonBlock":0,"clique":{"period":0,"epoch":0},"arbitrum":{"EnableArbOS":true,"AllowDebugPrecompiles":false,"DataAvailabilityCommittee":true,"InitialArbOSVersion":11,"GenesisBlockNum":0,"MaxCodeSize":40960,"MaxInitCodeSize":81920,"InitialChainOwner":"0xc7185e37A4aB4Af0E77bC08249CD2590AE3E1b51"},"chainId":660279},"rollup":{"bridge":"0x7dd8A76bdAeBE3BBBaCD7Aa87f1D4FDa1E60f94f","inbox":"0xaE21fDA3de92dE2FDAF606233b2863782Ba046F9","sequencer-inbox":"0x995a9d3ca121D48d21087eDE20bc8acb2398c8B1","rollup":"0xC47DacFbAa80Bd9D8112F4e8069482c2A3221336","validator-utils":"0x6c21303F5986180B1394d2C89f3e883890E2867b","validator-wallet-creator":"0x2b0E04Dc90e3fA58165CB41E2834B44A56E766aF","deployed-at":166757506}}]'
    execution:
      forwarding-target: https://xai-chain.net/rpc
    node:
      data-availability:
        enable: true
        sequencer-inbox-address: 0x995a9d3ca121D48d21087eDE20bc8acb2398c8B1
        parent-chain-node-url: <ARBITRUM_ONE_RPC_URL>
        rest-aggregator:
          enable: true
          online-url-list: https://xai-chain.net/das-servers
      feed:
        input:
          url: wss://xai-chain.net/feed
helm install xai offchainlabs/nitro -f values.yaml

Parameters

Nitro Deployment Options

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. Overrides the chart appVersion.""
imagePullSecretsDocker registry pull secret names as an array[]
nameOverrideString to partially override nitro.fullname""
fullnameOverrideString to fully override nitro.fullname""
commandOverrideCommand override for the nitro container{}
livenessProbeLiveness probe configuration{}
readinessProbeReadiness probe configuration{}
startupProbe.enabledEnable built in startup probetrue
startupProbe.failureThresholdNumber of failures before pod is considered unhealthy2419200
startupProbe.periodSecondsNumber of seconds between startup probes1
startupProbe.commandCommand to run for the startup probe. If empty, the built in probe will be used""
updateStrategy.typeUpdate strategy typeRollingUpdate
env.splitvalidator.goMemLimit.enabledEnable setting the garbage cleanup limit in Go for the split validatortrue
env.splitvalidator.goMemLimit.multiplierThe multiplier of available memory to use for the split validator0.75
env.splitvalidator.goMaxProcs.enabledEnable setting GOMAXPROCS for the split validatortrue
env.splitvalidator.goMaxProcs.multiplierThe multiplier to use for CPU request (default 2)2
env.splitvalidator.goMaxProcs.valueExplicit GOMAXPROCS for the split validator; when set (and enabled), overrides the CPU-based calculation""
env.splitvalidator.goMaxProcs.roundingRounding mode for the split validator GOMAXPROCS calculation: "ceil" (default) or "floor"ceil
env.nitro.goMemLimit.enabledEnable setting

Deploy nitro with OpenTenant

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