We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e65bc14 commit d858a25Copy full SHA for d858a25
files/bootstrap.sh
@@ -482,6 +482,11 @@ fi
482
KUBELET_CONFIG=/etc/kubernetes/kubelet/kubelet-config.json
483
echo "$(jq ".clusterDNS=[\"$DNS_CLUSTER_IP\"]" $KUBELET_CONFIG)" > $KUBELET_CONFIG
484
485
+if vercmp "$KUBELET_VERSION" gteq "1.29.0"; then
486
+ echo "$(jq ".shutdownGracePeriod=\"45s\"" $KUBELET_CONFIG)" > $KUBELET_CONFIG
487
+ echo "$(jq ".shutdownGracePeriodCriticalPods=\"15s\"" $KUBELET_CONFIG)" > $KUBELET_CONFIG
488
+fi
489
+
490
if [[ "${IP_FAMILY}" == "ipv4" ]]; then
491
INTERNAL_IP=$(imds 'latest/meta-data/local-ipv4')
492
else
0 commit comments