Skip to content

Commit

Permalink
nvidia-k8s-device-plugin: wait for kubelet.sock before starting
Browse files Browse the repository at this point in the history
  • Loading branch information
cbgbt committed Nov 1, 2024
1 parent f7b5c70 commit 29c4c26
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ After=kubelet.service
Wants=kubelet.service

[Service]
# Ensure that the kubelet device plugin socket exists before we start
# A brief sleep is needed to avoid the `test` failing its first check
ExecStartPre=/usr/bin/sleep 0.1
ExecStartPre=/usr/bin/test -S /var/lib/kubelet/device-plugins/kubelet.sock
ExecStart=/usr/bin/nvidia-device-plugin --device-list-strategy volume-mounts --device-id-strategy index --pass-device-specs=true
Type=simple
TimeoutSec=0
Expand Down

0 comments on commit 29c4c26

Please sign in to comment.