linera-block-exporter
by Linera
Linera block exporter: a side-car that reads blocks from a validator's storage backend (ScyllaDB) and pushes them to an indexer over gRPC. Recommended on every validator — it lets the wider network reconstruct chain history and powers the public explorer. The block exporter MUST run in the same cluster as a Linera validator and connect to the same ScyllaDB cluster. It cannot be operated standalone: it depends on a running validator's database.
About this chart
linera-block-exporter
Linera block exporter: a side-car that reads blocks from a validator's storage backend (ScyllaDB) and pushes them to an indexer over gRPC. Recommended on every validator — it lets the wider network reconstruct chain history and powers the public explorer.
The block exporter MUST run in the same cluster as a Linera validator and connect to the same ScyllaDB cluster. It cannot be operated standalone: it depends on a running validator's database.
Homepage: https://linera.io
Running a block exporter on your validator is strongly encouraged: it makes chain history available to the rest of the network without affecting the validator's hot path.
Hard requirements
- Must be deployed in the same Kubernetes cluster as a Linera validator (this chart's linera-validator).
- Must connect to the same ScyllaDB cluster the validator uses.
- A reachable indexer endpoint to push blocks to.
If you don't already run a validator, install
linera-validator first. You also need an
indexer endpoint reachable from the cluster to receive the pushed
blocks.
TL;DR
helm install validator-1-exporter \
oci://ghcr.io/linera-io/charts/linera-block-exporter \
--namespace linera \
--set exporterImage.repository=us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera-exporter \
--set exporterImage.tag=testnet_conway_release \
--set clientImage.repository=us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera-client \
--set clientImage.tag=testnet_conway_release \
--set storage.uri='scylladb:tcp:scylla-client.scylla.svc.cluster.local:9042' \
--set destinations[0].kind=Indexer \
--set destinations[0].endpoint=indexer.example.com \
--set destinations[0].port=8081 \
--set destinations[0].tls=ClearText
How it works
The exporter is a StatefulSet. Each replica:
- Waits for the validator's ScyllaDB to be initialized
(
linera storage check-existence). - Loads its TOML config (one per replica, keyed by the pod ordinal —
see
templates/configmap.yaml). - Waits for every configured indexer endpoint to respond on TCP.
- Runs
linera-exporter run --storage <uri> --config-path <toml> --metrics-port <port>.
Multiple replicas shard the work between them via the id field in
each TOML.
Maintainers
| Name | Url | |
|---|---|---|
| Linera infrastructure team | https://github.com/linera-io |
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| clientImage.digest | string | "" | Image digest. Takes precedence over tag when set. |
| clientImage.repository | string | "" | Image repository for the linera CLI. Empty falls back to image. |
| clientImage.tag | string | "" | Image tag. Defaults to image.tag, then .Chart.appVersion. |
| committeeDestination | bool | true | |
| commonLabels | object | {} | |
| destinations[0] | object | {"endpoint":"","kind":"Indexer","port":8081,"tls":"ClearText"} | One or more indexer endpoints to push blocks to. |
| destinations[0].endpoint | string | "" | DNS name or IP of the indexer. |
| destinations[0].port | int | 8081 | gRPC port of the indexer. |
| destinations[0].tls | string | "ClearText" | TLS mode: "ClearText" (in-cluster) or "Tls" (e.g. external indexer behind a Gateway with cert-manager TLS). |
| exporter.affinity | object | {} | |
| exporter.extraEnv | list | [] | |
| exporter.extraVolumeMounts | list | [] | |
| exporter.extraVolumes | list | [] | |
| exporter.indexerReadinessCheck | object | {"enabled":true,"image":"curlimages/curl:8.10.1","retryIntervalSeconds":5} | Wait for each indexer destination to respond before starting. |
| exporter.indexerReadinessCheck.image | string | "curlimages/curl:8.10.1" | Image used for the curl probe. Defaults to upstream curlimages/curl. |
| exporter.livenessProbe | object | {} | |
| exporter.nodeSelector | object | {} | Pod scheduling. |
| exporter.persistence | object | {"accessMode":"ReadWriteOnce","enabled":true,"size":"1Gi","storageClass":""} | Persistent volume claim template for exporter state. Disable for ephemeral storage (data lost on pod restart). |
| exporter.podAnnotations | object | {} | |
| exporter.podLabels | object | {} | |
| exporter.podSecurityContext.fsGroup | int | 65534 | |
| exporter.podSecurityContext.runAsNonRoot | bool | true | |
| exporter.podSecurityContext.runAsUser | int | 65534 | |
| exporter.priorityClassName | string | "" | |
| exporter.readinessProbe | object | {} | |
| exporter.replicas | int | 1 | Number of exporter replicas. Each replica gets its own TOML config (id = pod ordinal) so they can shard the work. |
| exporter.resources | object | {} | Resource requests and limits. |
| exporter.securityContext.allowPrivilegeEscalation | bool | false | |
| exporter.securityContext.capabilities.drop[0] | string | "ALL" | |
| exporter.securityContext.readOnlyRootFilesystem | bool | true | |
| exporter.startupProbe | object | {} | |
| exporter.storageInitCheck | object | {"enabled":true,"retryIntervalSeconds":5} | Wait for the validator's database to exist before starting. |
| exporter.terminationGracePeriodSeconds | int | 30 | |
| exporter.tolerations | list | [] | |
| exporter.topologySpreadConstraints | list | [] | |
| exporterImage.pullPolicy | string | "IfNotPresent" | |
| exporterImage.pullSecrets | list | [] | |
| exporterImage.repository | string | "" | Image with the linera-exporter binary (REQUIRED). Since the upstream image split this is linera-exporter. It is NOT the linera-validator image, which carries only linera-server and linera-proxy. |
| exporterImage.tag | string | "" | Image tag. Defaults to .Chart.appVersion when empty. |
| fullnameOverride | string | "" | |
| limits.auxiliaryCacheSizeMb | int | 1024 | |
| limits.blobCacheItemsCapacity | int | 8192 | |
| limits.blobCacheWeightMb | int | 1024 | |
| limits.blockCacheItemsCapacity | int | 8192 | |
| limits.blockCacheWeightMb | int | 1024 | |
| limits.persistencePeriodMs | int | 5000 | |
| limits.workQueueSize | int | 256 | |
| log.backtrace | string | "1" | |
| log.level | string | "info" | |
| nameOverride | string | "" | |
| ports.grpc | int | 8882 | gRPC port the exporter exposes for service-config peers. |
| ports.metrics | int | 9091 | Prometheus metrics port. |
| service.annotations | object | {} | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| serviceMonitor.enabled | bool | false | |
| serviceMonitor.interval | string | "30s" | |
| serviceMonitor.labels | object | {} | |
| serviceMonitor.scrapeTimeout | string | "10s" | |
| storage.uri | string | "" | Connection string for the validator's storage backend. Same value passed to linera-validator (typically "scylladb:tcp:scylla-client.scylla .svc.cluster.local:9042"). The exporter reads blocks from this database. |
License
Apache 2.0.
Autogenerated from chart metadata using helm-docs v1.14.2
Deploy linera-block-exporter with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has linera-block-exporter 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 chartlinera-block-exporter is pinned at v0.3.0 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