Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(al2023): ensure the sandbox image is present periodically #2074

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions templates/al2023/provisioners/cache-pause-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ set -o pipefail
sudo systemctl start containerd
cache-pause-container -i ${PAUSE_CONTAINER_IMAGE}
sudo systemctl stop containerd

sudo systemctl enable check-sandbox-image.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Check that the sandbox image is present in the containerd content store
After=containerd.service
Wants=containerd.service

[Service]
Type=oneshot
ExecStart=/usr/bin/ctr image import --namespace k8s.io /etc/eks/pause.tar

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Run check-sandbox-image periodically
Requires=check-sandbox-image.service

[Timer]
Unit=check-sandbox-image.service
# start 1 minute after boot
OnBootSec=1min
# run every 5 minutes
OnUnitActiveSec=5min

[Install]
WantedBy=timers.target
Loading