From 41dfa2217582a624a3cd582e5f0a93c25f951cad Mon Sep 17 00:00:00 2001 From: Carter Date: Fri, 2 Feb 2024 09:13:14 -0700 Subject: [PATCH] Remove sandbox image from build-time cache (#1615) --- scripts/install-worker.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/install-worker.sh b/scripts/install-worker.sh index 8d93409de..fd58fa292 100644 --- a/scripts/install-worker.sh +++ b/scripts/install-worker.sh @@ -412,14 +412,9 @@ if [[ "$CACHE_CONTAINER_IMAGES" == "true" ]] && ! [[ ${ISOLATED_REGIONS} =~ $BIN AWS_DOMAIN=$(imds 'latest/meta-data/services/domain') ECR_URI=$(/etc/eks/get-ecr-uri.sh "${BINARY_BUCKET_REGION}" "${AWS_DOMAIN}") - PAUSE_CONTAINER="${ECR_URI}/eks/pause:${PAUSE_CONTAINER_VERSION}" - cat /etc/eks/containerd/containerd-config.toml | sed s,SANDBOX_IMAGE,$PAUSE_CONTAINER,g | sudo tee /etc/eks/containerd/containerd-cached-pause-config.toml - sudo cp -v /etc/eks/containerd/containerd-cached-pause-config.toml /etc/containerd/config.toml - sudo cp -v /etc/eks/containerd/sandbox-image.service /etc/systemd/system/sandbox-image.service - sudo chown root:root /etc/systemd/system/sandbox-image.service sudo systemctl daemon-reload sudo systemctl start containerd - sudo systemctl enable containerd sandbox-image + sudo systemctl enable containerd K8S_MINOR_VERSION=$(echo "${KUBERNETES_VERSION}" | cut -d'.' -f1-2) @@ -467,7 +462,6 @@ if [[ "$CACHE_CONTAINER_IMAGES" == "true" ]] && ! [[ ${ISOLATED_REGIONS} =~ $BIN fi CACHE_IMGS=( - "${PAUSE_CONTAINER}" ${KUBE_PROXY_IMGS[@]+"${KUBE_PROXY_IMGS[@]}"} ${VPC_CNI_IMGS[@]+"${VPC_CNI_IMGS[@]}"} )