From 1632380ec5539b021c8907d89b13d5018e77331f Mon Sep 17 00:00:00 2001 From: Kevin Klues Date: Sat, 22 Feb 2025 16:21:17 +0000 Subject: [PATCH] Update README to work with changes to repo structure Signed-off-by: Kevin Klues --- README.md | 8 +++++--- demo/clusters/kind/install-dra-driver-gpu.sh | 2 +- demo/specs/quickstart/gpu-test2.yaml | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1050218c2..75518a210 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ First, create a `kind` cluster to run the demo: From here we will build the image for the example resource driver: ```console -./demo/clusters/kind/build-dra-driver.sh +./demo/clusters/kind/build-dra-driver-gpu.sh ``` This also makes the built images available to the `kind` cluster. @@ -76,8 +76,10 @@ This should show two pods running in the `nvidia` namespace: kubectl get pods -n nvidia ``` ``` -NAME READY STATUS RESTARTS AGE -k8s-dra-driver-gpu-kubelet-plugin-5vfp9 1/1 Running 0 69s +$ kubectl get pods -n nvidia +NAME READY STATUS RESTARTS AGE +nvidia-dra-driver-gpu-controller-697898fc6b-g85zx 1/1 Running 0 40s +nvidia-dra-driver-gpu-kubelet-plugin-kkwf7 2/2 Running 0 40s ``` ### Run the examples by following the steps in the demo script diff --git a/demo/clusters/kind/install-dra-driver-gpu.sh b/demo/clusters/kind/install-dra-driver-gpu.sh index 9a2248b06..efe5588e4 100755 --- a/demo/clusters/kind/install-dra-driver-gpu.sh +++ b/demo/clusters/kind/install-dra-driver-gpu.sh @@ -28,7 +28,7 @@ helm upgrade -i --create-namespace --namespace nvidia nvidia-dra-driver-gpu ${PR ${NVIDIA_CTK_PATH:+--set nvidiaCtkPath=${NVIDIA_CTK_PATH}} \ ${NVIDIA_DRIVER_ROOT:+--set nvidiaDriverRoot=${NVIDIA_DRIVER_ROOT}} \ ${MASK_NVIDIA_DRIVER_PARAMS:+--set maskNvidiaDriverParams=${MASK_NVIDIA_DRIVER_PARAMS}} \ - --set resources.gpus.enabled=false \ + --set gpuResourcesEnabledOverride=true \ --wait set +x diff --git a/demo/specs/quickstart/gpu-test2.yaml b/demo/specs/quickstart/gpu-test2.yaml index d6bce2eb3..4265f230d 100644 --- a/demo/specs/quickstart/gpu-test2.yaml +++ b/demo/specs/quickstart/gpu-test2.yaml @@ -26,6 +26,8 @@ kind: Pod metadata: namespace: gpu-test2 name: pod + labels: + app: pod spec: containers: - name: ctr0