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." 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