Skip to content

Commit

Permalink
Update and clean up quickstart README
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Chen <[email protected]>

Add link

Signed-off-by: Yuan Chen <[email protected]>

Minor typo fix

Signed-off-by: Yuan Chen <[email protected]>
  • Loading branch information
yuanchen8911 committed May 7, 2024
1 parent 917e1ce commit cd14425
Showing 1 changed file with 34 additions and 13 deletions.
47 changes: 34 additions & 13 deletions demo/specs/quickstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,47 @@
kubectl get pod -A
```

#### Show the current MIG configuration of the machine
#### Show the yaml files for the first 3 example apps discussed in the [KubeCon presentation](https://sched.co/1R2oG)
```console
nvidia-smi --query-gpu=index,name,uuid,mig.mode.current --format=csv
nvidia-smi -L
vim -O gpu-test1.yaml gpu-test2.yaml gpu-test3.yaml
```

#### Deploy the 4 example apps discussed in the slides
#### Deploy the 3 example apps above
```console
kubectl apply --filename=gpu-test{1,2,3,4}.yaml
kubectl apply --filename=gpu-test{1,2,3}.yaml
```

#### Show all the pods starting up
```console
kubectl get pod -A
```

#### Show the yaml files for the first 3 example apps
```console
vim -O gpu-test1.yaml gpu-test2.yaml gpu-test3.yaml
```

#### Show the GPUs allocated to each
```console
kubectl logs -n gpu-test1 -l app=pod
kubectl logs -n gpu-test2 pod --all-containers
kubectl logs -n gpu-test3 -l app=pod
```

#### Show the current MIG configuration of the machine
```console
nvidia-smi --query-gpu=index,name,uuid,mig.mode.current --format=csv
nvidia-smi -L
```

#### Show the yaml file for the complicated example with MIG devices
```console
vim -O gpu-test4.yaml
```

#### Deploy the MIG example
```console
kubectl apply -f gpu-test4.yaml
```

#### Show the pods running
```console
kubectl get pod -A
kubectl get pods -A -n gpu-test-4 -l app=pod
```

#### Show the output of nvidia-smi
Expand All @@ -62,17 +67,33 @@ do \
done
```

#### Delete this example
#### Delete this MIG example
```console
kubectl delete -f gpu-test4.yaml
```

#### Show the pods terminating
```console
kubectl get pod -A
kubectl get pods -A -n gpu-test4 -l app=pod
```

#### Show the output of nvidia-smi
```console
nvidia-smi -L
```

#### Show the MPS (Multi-Process Service) example

```console
vim -O gpu-test-mps.yaml
```

#### Deploy the MPS example
```console
kubectl apply -f gpu-test-mps.yaml
```

#### Show the pod running
```console
kubectl get pod -n sharing-demo -l app=pod
```

0 comments on commit cd14425

Please sign in to comment.