|
3 | 3 | kubectl get pod -A
|
4 | 4 | ```
|
5 | 5 |
|
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) |
7 | 7 | ```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 |
10 | 9 | ```
|
11 | 10 |
|
12 |
| -#### Deploy the 4 example apps discussed in the slides |
| 11 | +#### Deploy the 3 example apps above |
13 | 12 | ```console
|
14 |
| -kubectl apply --filename=gpu-test{1,2,3,4}.yaml |
| 13 | +kubectl apply --filename=gpu-test{1,2,3}.yaml |
15 | 14 | ```
|
16 | 15 |
|
17 | 16 | #### Show all the pods starting up
|
18 | 17 | ```console
|
19 | 18 | kubectl get pod -A
|
20 | 19 | ```
|
21 | 20 |
|
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 |
| - |
27 | 21 | #### Show the GPUs allocated to each
|
28 | 22 | ```console
|
29 | 23 | kubectl logs -n gpu-test1 -l app=pod
|
30 | 24 | kubectl logs -n gpu-test2 pod --all-containers
|
31 | 25 | kubectl logs -n gpu-test3 -l app=pod
|
32 | 26 | ```
|
33 | 27 |
|
| 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 | + |
34 | 34 | #### Show the yaml file for the complicated example with MIG devices
|
35 | 35 | ```console
|
36 | 36 | vim -O gpu-test4.yaml
|
37 | 37 | ```
|
38 | 38 |
|
| 39 | +#### Deploy the MIG example |
| 40 | +```console |
| 41 | +kubectl apply -f gpu-test4.yaml |
| 42 | +``` |
| 43 | + |
39 | 44 | #### Show the pods running
|
40 | 45 | ```console
|
41 |
| -kubectl get pod -A |
| 46 | +kubectl get pods -A -n gpu-test-4 -l app=pod |
42 | 47 | ```
|
43 | 48 |
|
44 | 49 | #### Show the output of nvidia-smi
|
|
62 | 67 | done
|
63 | 68 | ```
|
64 | 69 |
|
65 |
| -#### Delete this example |
| 70 | +#### Delete this MIG example |
66 | 71 | ```console
|
67 | 72 | kubectl delete -f gpu-test4.yaml
|
68 | 73 | ```
|
69 | 74 |
|
70 | 75 | #### Show the pods terminating
|
71 | 76 | ```console
|
72 |
| -kubectl get pod -A |
| 77 | +kubectl get pods -A -n gpu-test4 -l app=pod |
73 | 78 | ```
|
74 | 79 |
|
75 | 80 | #### Show the output of nvidia-smi
|
76 | 81 | ```console
|
77 | 82 | nvidia-smi -L
|
78 | 83 | ```
|
| 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