Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions assets/state-dcgm/0400_dcgm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,23 @@ spec:
ports:
- name: "dcgm"
containerPort: 5555
# A hostengine that started without NVML (e.g. before the driver
# modules were loaded) keeps listening on 5555 but sees no GPUs and
# never re-initialises. Check GPU visibility, but only while a driver
# is present, so a planned driver restart does not loop the hostengine.
livenessProbe:
tcpSocket:
port: 5555
initialDelaySeconds: 15
exec:
command:
- sh
- -c
- >-
if [ -e /dev/dxg ] || grep -q '^nvidia ' /proc/modules;
then dcgmi discovery -l | grep -qE '^[1-9][0-9]* GPUs? found';
else exit 0; fi
initialDelaySeconds: 30
periodSeconds: 60
timeoutSeconds: 15
failureThreshold: 3
readinessProbe:
tcpSocket:
port: 5555
Expand Down