From e4b76cc0b9e4c5efc63d949bf929559961e12716 Mon Sep 17 00:00:00 2001 From: Yuan Chen Date: Mon, 6 May 2024 11:37:21 -0700 Subject: [PATCH] Add a demo svg file showing the baisc DRA use Update demo Adjust demo svg format Update svg format Update the description of demo. update Signed-off-by: Yuan Chen Signed-off-by: Yuan Chen Update tje demo svg description Signed-off-by: Yuan Chen Update the svg demo Signed-off-by: Yuan Chen Remove duplicated info. Signed-off-by: Yuan Chen Clean up Signed-off-by: Yuan Chen --- README.md | 16 ++++++++++++---- demo/specs/quickstart/basic-demo.svg | 1 + 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 demo/specs/quickstart/basic-demo.svg diff --git a/README.md b/README.md index 7a79fc9a..8a208a53 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ First since we'll launch kind with GPU support, ensure that the following prereq sudo nvidia-ctk config --set accept-nvidia-visible-devices-as-volume-mounts=true --in-place ``` -1. Show the current set of GPUs on the machine +1. Show the current set of GPUs on the machine: ```console nvidia-smi -L ``` @@ -53,6 +53,15 @@ cd k8s-dra-driver ``` ### Setting up the infrastructure + +Here's a demo showing how to install and configure DRA, and run a pod in a `kind` cluster on a Linux workstation. + +

+ +

+ +Below are the detailed, step-by-step instructions. + First, create a `kind` cluster to run the demo: ```console ./demo/clusters/kind/create-cluster.sh @@ -88,7 +97,7 @@ The `README` in that directory shows the full script of the demo you can walk th cat demo/specs/quickstart/README.md ``` -Deploy the example pods in the demo directory. +Deploy the example pods in the demo directory: ```console kubectl apply --filename=demo/specs/quickstart/gpu-test{1,2,3}.yaml ``` @@ -130,11 +139,10 @@ GPU 0: A100-SXM4-40GB (UUID: GPU-4404041a-04cf-1ccf-9e70-f139a9b1e23c) ### Cleaning up the environment -Running +Remove the cluster created in the preceding steps: ```console ./demo/clusters/kind/delete-cluster.sh ``` -will remove the cluster created in the preceding steps.