From f52c9074795520ab01bc65a9c85a700cf074e84c Mon Sep 17 00:00:00 2001 From: Matt Sporleder Date: Mon, 13 May 2024 10:47:36 -0400 Subject: [PATCH] set registry QPS ot match MAX_PODS --- templates/al2/runtime/bootstrap.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/al2/runtime/bootstrap.sh b/templates/al2/runtime/bootstrap.sh index 81cf70a89..679f7cdf1 100755 --- a/templates/al2/runtime/bootstrap.sh +++ b/templates/al2/runtime/bootstrap.sh @@ -524,6 +524,8 @@ echo "$(jq --arg mebibytes_to_reserve "${mebibytes_to_reserve}Mi" --arg cpu_mill if [[ "$USE_MAX_PODS" = "true" ]]; then echo "$(jq ".maxPods=$MAX_PODS" $KUBELET_CONFIG)" > $KUBELET_CONFIG + #set registryPullQPS to match MAX_PODS to prevent startup problems when nodes failover + echo "$(jq --arg MAX_PODS $MAX_PODS '.+= {"registryPullQPS":$MAX_PODS}' $KUBELET_CONFIG)" > $KUBELET_CONFIG fi KUBELET_ARGS="--node-ip=$INTERNAL_IP --pod-infra-container-image=$PAUSE_CONTAINER --v=2"