kata-deploy: Restart nydus-snapshotter in case of failure

Let's ensure that in case nydus-snapshotter crashes for one reason or
another, the service is restarted.

This follows containerd approach, and avoids manual intervention in the
node.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
This commit is contained in:
Fabiano Fidêncio
2026-04-01 11:00:21 +02:00
parent 789abe6fdf
commit fe1f804543

View File

@@ -5,6 +5,8 @@ Before=containerd.service
[Service]
ExecStart=@CONTAINERD_NYDUS_GRPC_BINARY@ --config @CONFIG_GUEST_PULLING@ --log-to-stdout
Restart=always
RestartSec=5
[Install]
WantedBy=containerd.service