- A
StatefulSetnamed after the release, withpodManagementPolicy: ParallelandfsGroup: 1000. - One per-replica ADNL
Service(default type:LoadBalancer) withexternalTrafficPolicy: Localand optional static IP assignment. Additional per-replica Services are created for enabledcontrol,liteserver, andjsonRpcports, and a shared<release>-metricsClusterIPService is created whenports.metricsis enabled. - An init container (configured by
initImage, defaultalpine:3.21) that seeds configs from mounted volumes into the main persistent volume claim (PVC). PersistentVolumeClaim(PVC) resources:main,db,keys, and optionallylogs(controlled bystorage.logs.enabled).ConfigMapresources for global config, logs config, and optional bootstrap files:basestate(base state,basestate.boc) andzerostate(zero state,zerostate.boc).- A
Secretfor per-node JSON configs.
Volumes and mounts
The node uses persistent volumes:| Volume | Mount path | Purpose | Optional |
|---|---|---|---|
main | /main | Working directory: node config, global config, logs config, static files (basestate and zerostate hashes) | No |
db | /db | Blockchain database (largest volume, grows over time) | No |
logs | /logs | Rolling log files (output.log, rotated by logsConfig) | Yes (storage.logs.enabled) |
keys | /keys | Node keys and vault | No |
Storage recommendations
Thedb 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.
| Volume | Default size | Notes |
|---|---|---|
db | 1Ti | Going below 500Gi is not recommended. Size grows as blockchain state accumulates. |
logs | 150Gi | Default log rotation is 25 GB per file with 4 rotations. Volume size can be reduced if rolling file limits are adjusted accordingly. |
main | 1Gi | Stores configs and static files. Default is sufficient. |
keys | 1Gi | Stores node keys and vault. Default is sufficient. |
Init container bootstrap flow
Before the node starts, the init container (configured byinitImage, default alpine:3.21) prepares the /main volume:
- Copies
global.config.jsonandlogs.config.ymlfrom seedConfigMapvolumes into/main. - If
basestateandzerostatefiles are provided, compute SHA-256 hashes and write files as/main/static/<HASH>.boc. - Resolves pod index from pod name (for example,
my-node-2->2) and copiesnode-2.jsonfrom the node-configSecretto/main/config.json. - Sets ownership to UID
1000(non-root app user).
ConfigMap and Secret) are mounted read-only under /seed/:
| Seed volume | Mount path | Source |
|---|---|---|
global-config | /seed/global-config | ConfigMap with global.config.json |
logs-config | /seed/logs-config | ConfigMap with logs.config.yml |
node-configs | /seed/node-configs | Secret with node-<INDEX>.json per replica |
basestate | /seed/basestate | ConfigMap with basestate.boc (optional) |
zerostate | /seed/zerostate | ConfigMap with zerostate.boc (optional) |
Container command resolution
The main container command is selected automatically:| Order | Condition | Command |
|---|---|---|
| 1 | debug.sleep: true | sleep infinity |
| 2 | command is set | custom command from command |
| 3 | both basestate and zerostate are provided | node -c /main -z /main/static |
| 4 | otherwise | node -c /main |
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 annotationrsquad.io/config-checksum stores a SHA-256 checksum of all inline configs. Any config change triggers a pod restart.