Skip to main content
TON Rust node Helm chart deploys the following Kubernetes resources:
  • A StatefulSet named after the release, with podManagementPolicy: Parallel and fsGroup: 1000.
  • One per-replica ADNL Service (default type: LoadBalancer) with externalTrafficPolicy: Local and optional static IP assignment. Additional per-replica Services are created for enabled control, liteserver, and jsonRpc ports, and a shared <release>-metrics ClusterIP Service is created when ports.metrics is enabled.
  • An init container (configured by initImage, default alpine:3.21) that seeds configs from mounted volumes into the main persistent volume claim (PVC).
  • PersistentVolumeClaim (PVC) resources: main, db, keys, and optionally logs (controlled by storage.logs.enabled).
  • ConfigMap resources for global config, logs config, and optional bootstrap files: basestate (base state, basestate.boc) and zerostate (zero state, zerostate.boc).
  • A Secret for per-node JSON configs.
All resource names are prefixed with the release name, so multiple installations can run in one namespace.

Volumes and mounts

The node uses persistent volumes:

Storage recommendations

The db and logs volumes are performance-critical because they handle continuous heavy I/O from blockchain database operations and log writes. The chart recommends local storage with direct disk access (local-path, OpenEBS with Linux Logical Volume Manager (LVM) support, or similar local volume provisioners). Network-attached storage (Network File System (NFS), Ceph Reliable Autonomic Distributed Object Store (RADOS) block device (RBD), Amazon Elastic Block Store (EBS), and similar systems) adds latency and can significantly affect node performance and sync speed under high I/O workloads. The main and keys volumes have minimal I/O load, so standard storage classes are usually sufficient. The chart recommends Longhorn v1 with replica count 3 for data safety. Longhorn v2 is currently not recommended for TON Rust Node workloads in the chart maintainers’ current test scope.

Init container bootstrap flow

Before the node starts, the init container (configured by initImage, default alpine:3.21) prepares the /main volume:
  1. Copies global.config.json and logs.config.yml from seed ConfigMap volumes into /main.
  2. If basestate and zerostate files are provided, compute SHA-256 hashes and write files as /main/static/<HASH>.boc.
  3. Resolves pod index from pod name (for example, my-node-2 -> 2) and copies node-2.json from the node-config Secret to /main/config.json.
  4. Sets ownership to UID 1000 (non-root app user).
Seed volumes (ConfigMap and Secret) are mounted read-only under /seed/:

Container command resolution

The main container command is selected automatically: Conditions are evaluated in this order, and the first matching condition is used. When command is set, the chart runs exactly the command configured in command. For debug.sleep: true, the chart uses a busybox image.

Config change detection

The pod annotation rsquad.io/config-checksum stores a SHA-256 checksum of all inline configs. Any config change triggers a pod restart.