@@ -247,7 +247,7 @@ select and configure resources in various ways:
247247kubectl apply --filename=demo/basic-resourceclaimtemplate.yaml \
248248 --filename=demo/basic-multiple-requests.yaml \
249249 --filename=demo/basic-shared-claim-across-containers.yaml \
250- --filename=demo/shared-claim-across-pods.yaml \
250+ --filename=demo/basic- shared-claim-across-pods.yaml \
251251 --filename=demo/basic-resourceclaim-opaque-config.yaml
252252```
253253
@@ -261,21 +261,18 @@ basic-resourceclaimtemplate pod1 0/1 Pending 0
261261basic-multiple-requests pod0 0/2 Pending 0 2s
262262basic-shared-claim-across-containers pod0 0/1 ContainerCreating 0 2s
263263basic-shared-claim-across-containers pod1 0/1 ContainerCreating 0 2s
264- shared-claim-across-pods pod0 0/1 Pending 0 2s
264+ basic- shared-claim-across-pods pod0 0/1 Pending 0 2s
265265basic-resourceclaim-opaque-config pod0 0/4 Pending 0 2s
266266...
267267```
268268
269269Use your favorite editor to look through each of the ` basic-*.yaml `
270- files and see what they are doing. The semantics of each match the figure
271- below:
272-
273- ![ Demo Apps Figure] ( demo/demo-apps.png?raw=true " Semantics of the applications requesting resources from the example DRA resource driver. ")
270+ files and see what they are doing.
274271
275272Then dump the logs of each app to verify that GPUs were allocated to them
276273according to these semantics:
277274``` bash
278- for ns in basic-resourceclaimtemplate basic-multiple-requests basic-shared-claim-across-containers shared-claim-across-pods basic-resourceclaim-opaque-config; do \
275+ for ns in basic-resourceclaimtemplate basic-multiple-requests basic-shared-claim-across-containers basic- shared-claim-across-pods basic-resourceclaim-opaque-config; do \
279276 echo " ${ns} :"
280277 for pod in $( kubectl get pod -n ${ns} --output=jsonpath=' {.items[*].metadata.name}' ) ; do \
281278 for ctr in $( kubectl get pod -n ${ns} ${pod} -o jsonpath=' {.spec.containers[*].name}' ) ; do \
@@ -310,7 +307,7 @@ declare -x GPU_DEVICE_2="gpu-2"
310307declare -x GPU_DEVICE_2_SHARING_STRATEGY=" TimeSlicing"
311308declare -x GPU_DEVICE_2_TIMESLICE_INTERVAL=" Default"
312309
313- shared-claim-across-pods:
310+ basic- shared-claim-across-pods:
314311pod0 ctr0:
315312declare -x GPU_DEVICE_3=" gpu-3"
316313declare -x GPU_DEVICE_3_SHARING_STRATEGY=" TimeSlicing"
@@ -402,7 +399,7 @@ example apps:
402399kubectl delete --wait=false --filename=demo/basic-resourceclaimtemplate.yaml \
403400 --filename=demo/basic-multiple-requests.yaml \
404401 --filename=demo/basic-shared-claim-across-containers.yaml \
405- --filename=demo/shared-claim-across-pods.yaml \
402+ --filename=demo/basic- shared-claim-across-pods.yaml \
406403 --filename=demo/basic-resourceclaim-opaque-config.yaml \
407404 --filename=demo/admin-access.yaml
408405` ` `
@@ -417,7 +414,7 @@ basic-resourceclaimtemplate pod1 1/1 Terminating 0 3
417414basic-multiple-requests pod0 2/2 Terminating 0 31m
418415basic-shared-claim-across-containers pod0 1/1 Terminating 0 31m
419416basic-shared-claim-across-containers pod1 1/1 Terminating 0 31m
420- shared-claim-across-pods pod0 1/1 Terminating 0 31m
417+ basic- shared-claim-across-pods pod0 1/1 Terminating 0 31m
421418basic-resourceclaim-opaque-config pod0 4/4 Terminating 0 31m
422419admin-access pod0 1/1 Terminating 0 31m
423420...
0 commit comments