File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 136
136
137
137
sudo mv " ${WORKING_DIR} /runtime.slice" /etc/systemd/system/runtime.slice
138
138
139
+ if vercmp " ${KUBERNETES_VERSION} " gteq " 1.30.0" ; then
140
+ # increase the max inhibit delay to accommodate kubelet's graceful shutdown procedure
141
+ cat << EOF | sudo tee /etc/systemd/logind.conf.d/00-kubelet-graceful-shutdown.conf
142
+ InhibitDelayMaxSec=45
143
+ EOF
144
+ fi
145
+
139
146
# ##############################################################################
140
147
# ## Containerd setup ##########################################################
141
148
# ##############################################################################
Original file line number Diff line number Diff line change 482
482
KUBELET_CONFIG=/etc/kubernetes/kubelet/kubelet-config.json
483
483
echo $( jq --arg DNS_CLUSTER_IP " $DNS_CLUSTER_IP " ' .clusterDNS=($DNS_CLUSTER_IP|split(","))' $KUBELET_CONFIG ) > $KUBELET_CONFIG
484
484
485
+ if vercmp " $KUBELET_VERSION " gteq " 1.30.0" ; then
486
+ echo " $( jq " .shutdownGracePeriod=\" 45s\" " $KUBELET_CONFIG ) " > $KUBELET_CONFIG
487
+ echo " $( jq " .shutdownGracePeriodCriticalPods=\" 15s\" " $KUBELET_CONFIG ) " > $KUBELET_CONFIG
488
+ fi
489
+
485
490
if [[ " ${IP_FAMILY} " == " ipv4" ]]; then
486
491
INTERNAL_IP=$( imds ' latest/meta-data/local-ipv4' )
487
492
else
You can’t perform that action at this time.
0 commit comments