Skip to content

Commit

Permalink
Merge pull request #228 from cbgbt/nkdp-wait-for-kubelet-sock
Browse files Browse the repository at this point in the history
nvidia-k8s-device-plugin: wait for kubelet.sock before starting
  • Loading branch information
cbgbt authored Nov 1, 2024
2 parents f7b5c70 + 29c4c26 commit 093a732
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 093a732

Please sign in to comment.