From 89d8c5e7bded271428245f33e86459deb7a79ef3 Mon Sep 17 00:00:00 2001 From: "v.oleynikov" Date: Thu, 18 Jun 2026 12:48:23 +0300 Subject: [PATCH 1/2] csi-node: add optional startupProbe for slow-starting drivers CSI drivers that perform device cleanup at startup (e.g. Huawei eSDK garbage collector) can block the gRPC server for minutes. The existing livenessProbe (initialDelaySeconds=5, default failureThreshold=3) kills the pod before it becomes ready, creating a crash loop. Add a `startupProbeFailureThreshold` config parameter: when set to a positive integer, a Kubernetes startupProbe is rendered on the node container. While the startup probe is active the kubelet suspends liveness checks, giving the driver enough time to finish initialisation. --- charts/helm_lib/templates/_csi_node.tpl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/charts/helm_lib/templates/_csi_node.tpl b/charts/helm_lib/templates/_csi_node.tpl index 318b4bd..e108d7a 100644 --- a/charts/helm_lib/templates/_csi_node.tpl +++ b/charts/helm_lib/templates/_csi_node.tpl @@ -36,6 +36,7 @@ memory: 25Mi {{- $additionalCsiNodePodAnnotations := $config.additionalCsiNodePodAnnotations | default false }} {{- $csiNodeHostNetwork := $config.csiNodeHostNetwork | default "true" }} {{- $csiNodeHostPID := $config.csiNodeHostPID | default "false" }} + {{- $startupProbeFailureThreshold := $config.startupProbeFailureThreshold | default 0 }} {{- $dnsPolicy := $config.dnsPolicy | default "ClusterFirstWithHostNet" }} {{- $securityPolicyExceptionEnabled := $config.securityPolicyExceptionEnabled | default false }} {{- $kubernetesSemVer := semver $context.Values.global.discovery.kubernetesVersion }} @@ -216,6 +217,15 @@ spec: port: {{ $livenessProbePort }} initialDelaySeconds: 5 timeoutSeconds: 5 + {{- end }} + {{- if and $livenessProbePort $startupProbeFailureThreshold }} + startupProbe: + httpGet: + path: /healthz + port: {{ $livenessProbePort }} + periodSeconds: 10 + failureThreshold: {{ $startupProbeFailureThreshold }} + timeoutSeconds: 5 {{- end }} volumeMounts: - name: kubelet-dir From 235a895d0a217cc7425e986959c690b11acdfb55 Mon Sep 17 00:00:00 2001 From: "v.oleynikov" Date: Thu, 2 Jul 2026 17:51:57 +0300 Subject: [PATCH 2/2] chore: bump chart version to 1.72.5 Co-Authored-By: Claude Opus 4.8 (1M context) --- charts/helm_lib/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/helm_lib/Chart.yaml b/charts/helm_lib/Chart.yaml index 63615b3..d4230a7 100644 --- a/charts/helm_lib/Chart.yaml +++ b/charts/helm_lib/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 type: library name: deckhouse_lib_helm -version: 1.72.4 +version: 1.72.5 description: "Helm utils template definitions for Deckhouse modules."