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:
VolumeMount pathPurposeOptional
main/mainWorking directory: node config, global config, logs config, static files (basestate and zerostate hashes)No
db/dbBlockchain database (largest volume, grows over time)No
logs/logsRolling log files (output.log, rotated by logsConfig)Yes (storage.logs.enabled)
keys/keysNode keys and vaultNo

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.
VolumeDefault sizeNotes
db1TiGoing below 500Gi is not recommended. Size grows as blockchain state accumulates.
logs150GiDefault log rotation is 25 GB per file with 4 rotations. Volume size can be reduced if rolling file limits are adjusted accordingly.
main1GiStores configs and static files. Default is sufficient.
keys1GiStores node keys and vault. Default is sufficient.

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/:
Seed volumeMount pathSource
global-config/seed/global-configConfigMap with global.config.json
logs-config/seed/logs-configConfigMap with logs.config.yml
node-configs/seed/node-configsSecret with node-<INDEX>.json per replica
basestate/seed/basestateConfigMap with basestate.boc (optional)
zerostate/seed/zerostateConfigMap with zerostate.boc (optional)

Container command resolution

The main container command is selected automatically:
OrderConditionCommand
1debug.sleep: truesleep infinity
2command is setcustom command from command
3both basestate and zerostate are providednode -c /main -z /main/static
4otherwisenode -c /main
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.