Skip to content

Commit

Permalink
feat(al2023): ensure the sandbox image is present periodically
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermckinnon committed Nov 23, 2024
1 parent e45e2ec commit a15826e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
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

0 comments on commit a15826e

Please sign in to comment.