File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
runtime/rootfs/etc/systemd/system Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,5 @@ set -o pipefail
7
7
sudo systemctl start containerd
8
8
cache-pause-container -i ${PAUSE_CONTAINER_IMAGE}
9
9
sudo systemctl stop containerd
10
+
11
+ sudo systemctl enable check-sandbox-image.timer
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =Check that the sandbox image is present in the containerd content store
3
+ After =containerd.service
4
+ Wants =containerd.service
5
+
6
+ [Service]
7
+ Type =oneshot
8
+ ExecStart =/usr/bin/ctr image import --namespace k8s.io /etc/eks/pause.tar
9
+
10
+ [Install]
11
+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description=Run check-sandbox-image periodically
3
+ Requires=check-sandbox-image.service
4
+
5
+ [Timer]
6
+ Unit=check-sandbox-image.service
7
+ # start 1 minute after boot
8
+ OnBootSec=1min
9
+ # run every 5 minutes
10
+ OnUnitActiveSec=5min
11
+
12
+ [Install]
13
+ WantedBy=timers.target
You can’t perform that action at this time.
0 commit comments