We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82ec420 commit 786a770Copy full SHA for 786a770
templates/al2/runtime/bootstrap.sh
@@ -482,6 +482,11 @@ fi
482
KUBELET_CONFIG=/etc/kubernetes/kubelet/kubelet-config.json
483
echo $(jq --arg DNS_CLUSTER_IP "$DNS_CLUSTER_IP" '.clusterDNS=($DNS_CLUSTER_IP|split(","))' $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