Helm chartv1.0.9App v3.12.2-5f02f3fMITVerified publisher

A Helm chart for Arbitrum Nitro DAS and DAS Mirrors

About this chart

Nitro DAS

A Helm chart for Arbitrum Nitro Data Availabity Servers and Mirrors. For full details on running a DAS, please see the official Arbitrum Documentation.

[!WARNING] There are many configuration options available for running a DAS and DAS Mirror. The chart defaults and intructions below are intended to get the server running. This is insufficient for production use. Please see the Configuration Options section for the exhaustive list of options.

Quickstart

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

Required Parameters

This chart supports running as a DAS mirror or a DAS as a member of a DAC. At a minimum, you must provide a parent chain node url, the sequencer inbox address, and a storage type. However, it is recommended to use multiple storage types for redundancy.

DAS Mirror

helm install <my-release> offchainlabs/das \
--set configmap.data.data-availability.parent-chain-node-url=<PARENT_CHAIN_NODE_URL> \
--set configmap.data.data-availability.sequencer-inbox-address=<SEQUENCER_INBOX_ADDRESS> \
--set configmap.data.data-availability.local-file-storage.enable=true \
--set configmap.data.data-availability.local-file-storage.data-dir="/data/das-file-storage"

DAS

Running a DAS as a part of a Data Availability Committee (DAC) requires a BLS key. The key can be provided as a secret or as a file. See the Configuration Options section for more details.

apiVersion: v1
kind: Secret
metadata:
  name: das-bls
data:
  das_bls: <BASE_64_ENCODED_PRIVATE_KEY>
  das_bls.pub: <BASE64_ENCODED_PUB_KEY
helm install <my-release> offchainlabs/das \
--set configmap.data.data-availability.parent-chain-node-url=<PARENT_CHAIN_NODE_URL> \
--set configmap.data.data-availability.sequencer-inbox-address=<SEQUENCER_INBOX_ADDRESS> \
--set configmap.data.data-availability.local-file-storage.enable=true \
--set configmap.data.data-availability.local-file-storage.data-dir="/data/das-file-storage" \
--set configmap.data.data-availability.key.key-dir="/data/das-key" \
--set configmap.data.enable-rpc=true \
--set dasecretName=das-bls

Examples

Examples are included below of values files that may be useful as a starting point for production use cases.

DAS (Mirror)

configmap:
  data:
    conf:
      env-prefix: "NITRO"
    data-availability:
      parent-chain-node-url: <PARENT_CHAIN_URL>
      sequencer-inbox-address: <SEQUENCER_INBOX_ADDRESS>
      local-db-storage:
        enable: true
        data-dir: "/data/das-db"
        discard-after-timeout: false
      local-file-storage:
        enable: true
        data-dir: "/data/das-storage"
      s3-storage:
        enable: true
        access-key: <S3_ACCESS_KEY>
        bucket: <S3_BUCKET_NAME>
        region: <S3_BUCKET_REGION>
      rest-aggregator:
        enable: true
        online-url-list: <DAS_URL_LIST> #URL with a list of active DAS endpoints such as https://nova.arbitrum.io/das-servers
        urls:
          - <INTERNAL_DAS_REST_ENDPOINT> #Useful to include an internal REST endpoint if also running a DAS
        sync-to-storage:
          eager: true
          eager-lower-bound-block: <PARENT_CHAIN_BLOCK_CHAIN_WAS_DEPLOYED>
          state-dir: /data/das-storage/syncState

extraEnv:
  - name: POD_NAME
    valueFrom:
      fieldRef:
        fieldPath: metadata.name
  - name: NITRO_DATA__AVAILABILITY_S3__STORAGE_OBJECT__PREFIX
    value: "$(POD_NAME)/"
  - name: NITRO_DATA__AVAILABILITY_S3__STORAGE_SECRET__KEY
    valueFrom:
      secretKeyRef:
        name: das-s3-credentials
        key: secretKey

DAS (DAC Member)

configmap:
  data:
    conf:
      env-prefix: "NITRO"
    data-availability:
      parent-chain-node-url: <PARENT_CHAIN_URL>
      sequencer-inbox-address: <SEQUENCER_INBOX_ADDRESS>
      key:
        key-dir: "/data/das-key"
      local-db-storage:
        enable: true
        data-dir: "/data/das-db"
        discard-after-timeout: false
      local-file-storage:
        enable: true
        data-dir: "/data/das-storage"
      s3-storage:
        enable: true
        access-key: <S3_ACCESS_KEY>
        bucket: <S3_BUCKET_NAME>
        region: <S3_BUCKET_REGION>
      rest-aggregator:
        enable: true
        online-url-list: <DAS_URL_LIST> #URL with a list of active DAS endpoints such as https://nova.arbitrum.io/das-servers
        urls:
          - <INTERNAL_DAS_REST_ENDPOINT> #Useful to include an internal REST endpoint if also running a DAS
        sync-to-storage:
          eager: true
          eager-lower-bound-block: <PARENT_CHAIN_BLOCK_CHAIN_WAS_DEPLOYED>
          state-dir: /data/das-storage/syncState
      enable-rpc: true

dasecretName: <BLS_KEY_SECRET_NAME>

extraEnv:
  - name: POD_NAME
    valueFrom:
      fieldRef:
        fieldPath: metadata.name
  - name: NITRO_DATA__AVAILABILITY_S3__STORAGE_OBJECT__PREFIX
    value: "$(POD_NAME)/"
  - name: NITRO_DATA__AVAILABILITY_S3__STORAGE_SECRET__KEY
    valueFrom:
      secretKeyRef:
        name: das-s3-credentials
        key: secretKey

Parameters

DAS Deployment Options

NameDescriptionValue
replicaCountNumber of replicas1
lifecycleLifecycle hooks configuration{}
extraEnvAdditional environment variables for the container{}
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 das fullname""
fullnameOverrideString to fully override das fullname""
diagnosticModeEnable diagnostics mode (sleep infinity)false
commandOverrideCommand override for the das container{}
customArgsExtra args to pass to the das container command[]
livenessProbelivenessProbe
livenessProbe.enabledEnable liveness probetrue
livenessProbe.initialDelaySecondsInitial delay for the liveness probe60
livenessProbe.periodSecondsPeriod for the liveness probe60
livenessProbe.timeoutSecondsTimeout for the liveness probe5
livenessProbe.failureThresholdFailure threshold for the liveness probe3
livenessProbe.successThresholdSuccess threshold for the liveness probe1
readinessProbereadinessProbe
readinessProbe.enabledEnable readiness probetrue
readinessProbe.initialDelaySecondsInitial delay for the readiness probe0
readinessProbe.periodSecondsPeriod for the readiness probe5
readinessProbe.timeoutSecondsTimeout for the readiness probe5
readinessProbe.failureThresholdFailure threshold for the readiness probe3
readinessProbe.successThresholdSuccess threshold for the readiness probe1
startupProbestartupProbe
startupProbe.enabledEnable startup probefalse
updateStrategy.typeUpdate strategy typeRollingUpdate
persistence.localfilestorageThis will only be created if local file storage is enabled in the configmap
persistence.localfilestorage.sizeSize of the persistent volume claim100Gi
persistence.localfilestorage.storageClassNameStorage class of the persistent volume claimnil
persistence.localfilestorage.accessModesAccess modes of the persistent volume claim["ReadWriteOnce"]
serviceMonitor.enabledEnable service monitor CRD for prometheus operatorfalse
serviceMonitor.portNameName of the port to monitormetrics
serviceMonitor.pathPath to monitor/debug/metrics/prometheus
serviceMonitor.intervalInterval to monitor5s
serviceMonitor.relabelingsAdd relabelings for the metrics being scraped[]
perReplicaService.enabledEnable per replica servicefalse
headlessService.enabledEnable headless servicefalse
headlessService.publishNotReadyAddressesPublish not ready addressestrue
pdb.enabledEnable pod disruption budgetfalse
pdb.minAvailableMinimum number of available pods""
pdb.maxUnavailableMaximum number of unavailable pods1
serviceAccount.createCreate a service accounttrue
serviceAccount.annotationsAnnotations for the service account{}
serviceAccount.nameName of the service account""
podAnnotationsAnnotations for the das 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.fsGroupChangePo

Deploy das with OpenTenant

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