From e930c4538e63f027221efc66602aac023d1b8371 Mon Sep 17 00:00:00 2001 From: Nimbus318 <136771156+Nimbus318@users.noreply.github.com> Date: Fri, 6 Dec 2024 12:24:13 +0800 Subject: [PATCH] fix(helm): Add NODE_NAME env var to the vgpu-monitor container from spec.nodeName Signed-off-by: Nimbus318 <136771156+Nimbus318@users.noreply.github.com> --- charts/hami/templates/device-plugin/daemonsetnvidia.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/hami/templates/device-plugin/daemonsetnvidia.yaml b/charts/hami/templates/device-plugin/daemonsetnvidia.yaml index 04d674917..e2b062b81 100644 --- a/charts/hami/templates/device-plugin/daemonsetnvidia.yaml +++ b/charts/hami/templates/device-plugin/daemonsetnvidia.yaml @@ -92,6 +92,10 @@ spec: drop: ["ALL"] add: ["SYS_ADMIN"] env: + - name: NODE_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName - name: NVIDIA_VISIBLE_DEVICES value: "all" - name: NVIDIA_MIG_MONITOR_DEVICES