Skip to content

Commit 6a1757c

Browse files
committed
Update and clean up quickstart README
Signed-off-by: Yuan Chen <[email protected]> Add link Signed-off-by: Yuan Chen <[email protected]>
1 parent 917e1ce commit 6a1757c

File tree

1 file changed

+34
-13
lines changed

1 file changed

+34
-13
lines changed

demo/specs/quickstart/README.md

+34-13
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,47 @@
33
kubectl get pod -A
44
```
55

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

12-
#### Deploy the 4 example apps discussed in the slides
11+
#### Deploy the 3 example apps above
1312
```console
14-
kubectl apply --filename=gpu-test{1,2,3,4}.yaml
13+
kubectl apply --filename=gpu-test{1,2,3}.yaml
1514
```
1615

1716
#### Show all the pods starting up
1817
```console
1918
kubectl get pod -A
2019
```
2120

22-
#### Show the yaml files for the first 3 example apps
23-
```console
24-
vim -O gpu-test1.yaml gpu-test2.yaml gpu-test3.yaml
25-
```
26-
2721
#### Show the GPUs allocated to each
2822
```console
2923
kubectl logs -n gpu-test1 -l app=pod
3024
kubectl logs -n gpu-test2 pod --all-containers
3125
kubectl logs -n gpu-test3 -l app=pod
3226
```
3327

28+
#### Show the current MIG configuration of the machine
29+
```console
30+
nvidia-smi --query-gpu=index,name,uuid,mig.mode.current --format=csv
31+
nvidia-smi -L
32+
```
33+
3434
#### Show the yaml file for the complicated example with MIG devices
3535
```console
3636
vim -O gpu-test4.yaml
3737
```
3838

39+
#### Deploy the MIG example
40+
```console
41+
kubectl apply -f gpu-test4.yaml
42+
```
43+
3944
#### Show the pods running
4045
```console
41-
kubectl get pod -A
46+
kubectl get pods -A -n gpu-test-4 -l app=pod
4247
```
4348

4449
#### Show the output of nvidia-smi
@@ -62,17 +67,33 @@ do \
6267
done
6368
```
6469

65-
#### Delete this example
70+
#### Delete this MIG example
6671
```console
6772
kubectl delete -f gpu-test4.yaml
6873
```
6974

7075
#### Show the pods terminating
7176
```console
72-
kubectl get pod -A
77+
kubectl get pods -A -n gpu-test4 -l app=pod
7378
```
7479

7580
#### Show the output of nvidia-smi
7681
```console
7782
nvidia-smi -L
7883
```
84+
85+
#### Show the MPS (Multi-Process Service) example.
86+
87+
```console
88+
vim -O gpu-test-mps.yaml
89+
```
90+
91+
#### Deploy the MPS example
92+
```console
93+
kubectl apply -f gpu-test-mps.yaml
94+
```
95+
96+
#### Show the pod running
97+
```console
98+
kubectl get pod -n sharing-demo -l app=pod
99+
```

0 commit comments

Comments
 (0)