Skip to content

Commit

Permalink
Remove sandbox image from build-time cache (#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermckinnon authored Feb 2, 2024
1 parent 7fa037a commit 41dfa22
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/install-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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[@]}"}
)
Expand Down

0 comments on commit 41dfa22

Please sign in to comment.