nitro
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
| Name | Description | Value |
|---|---|---|
lifecycle | Lifecycle hooks configuration | {} |
extraEnv | Additional environment variables for the container | {} |
replicaCount | Number of replicas to deploy | 1 |
image.repository | Docker image repository | offchainlabs/nitro-node |
image.pullPolicy | Docker image pull policy | Always |
image.tag | Docker image tag. Overrides the chart appVersion. | "" |
imagePullSecrets | Docker registry pull secret names as an array | [] |
nameOverride | String to partially override nitro.fullname | "" |
fullnameOverride | String to fully override nitro.fullname | "" |
commandOverride | Command override for the nitro container | {} |
livenessProbe | Liveness probe configuration | {} |
readinessProbe | Readiness probe configuration | {} |
startupProbe.enabled | Enable built in startup probe | true |
startupProbe.failureThreshold | Number of failures before pod is considered unhealthy | 2419200 |
startupProbe.periodSeconds | Number of seconds between startup probes | 1 |
startupProbe.command | Command to run for the startup probe. If empty, the built in probe will be used | "" |
updateStrategy.type | Update strategy type | RollingUpdate |
env.splitvalidator.goMemLimit.enabled | Enable setting the garbage cleanup limit in Go for the split validator | true |
env.splitvalidator.goMemLimit.multiplier | The multiplier of available memory to use for the split validator | 0.75 |
env.splitvalidator.goMaxProcs.enabled | Enable setting GOMAXPROCS for the split validator | true |
env.splitvalidator.goMaxProcs.multiplier | The multiplier to use for CPU request (default 2) | 2 |
env.splitvalidator.goMaxProcs.value | Explicit GOMAXPROCS for the split validator; when set (and enabled), overrides the CPU-based calculation | "" |
env.splitvalidator.goMaxProcs.rounding | Rounding mode for the split validator GOMAXPROCS calculation: "ceil" (default) or "floor" | ceil |
env.nitro.goMemLimit.enabled | Enable 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnitro is pinned at v0.8.27 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