Skip to content

Commit 228770b

Browse files
authored
feat(helm): add terminationGracePeriodSeconds parameter (#45)
1 parent 8bd0d74 commit 228770b

4 files changed

Lines changed: 14 additions & 1 deletion

File tree

helm/ton-rust-node/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to the Helm chart will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/).
66
Versions follow the Helm chart release tags (e.g. `helm/v0.3.0`).
77

8+
## [0.4.3] - 2026-04-01
9+
10+
appVersion: `v0.3.0`
11+
12+
### Added
13+
14+
- `terminationGracePeriodSeconds` — configurable grace period before SIGKILL on pod termination. Defaults to 300s (5 minutes). The Kubernetes default of 30s is too short for a TON node — an unclean kill may corrupt the database and forces a cold boot
15+
816
## [0.4.2] - 2026-03-18
917

1018
appVersion: `v0.3.0`

helm/ton-rust-node/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: node
33
description: TON Rust Node deployment
44
type: application
5-
version: 0.4.2
5+
version: 0.4.3
66
appVersion: "v0.3.0"
77

88
sources:

helm/ton-rust-node/templates/statefulset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ spec:
4646
affinity:
4747
{{- toYaml . | nindent 8 }}
4848
{{- end }}
49+
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
4950
{{- if .Values.hostNetwork }}
5051
hostNetwork: true
5152
dnsPolicy: ClusterFirstWithHostDNS

helm/ton-rust-node/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,10 @@ serviceAccount:
407407
name: ""
408408
annotations: {}
409409

410+
## @param terminationGracePeriodSeconds Time (in seconds) given to the node process to shut down gracefully before SIGKILL. The default Kubernetes value (30s) is too short for a TON node — an unclean kill may corrupt the database and forces a cold boot. Set this to at least 300s.
411+
##
412+
terminationGracePeriodSeconds: 300
413+
410414
## @section Scheduling parameters
411415

412416
## @param nodeSelector [object] Node selector for pod scheduling

0 commit comments

Comments
 (0)