add sriov in docker stack
This commit is contained in:
@@ -48,12 +48,14 @@ services:
|
|||||||
- discrete_resource_spec:
|
- discrete_resource_spec:
|
||||||
kind: "NVIDIA-GPU"
|
kind: "NVIDIA-GPU"
|
||||||
value: 8
|
value: 8
|
||||||
|
- discrete_resource_spec:
|
||||||
|
kind: "SRIOV-VF"
|
||||||
|
value: 1
|
||||||
placement:
|
placement:
|
||||||
constraints: [node.labels.gpu == true]
|
constraints: [node.labels.gpu == true]
|
||||||
cap_add:
|
cap_add:
|
||||||
- IPC_LOCK
|
- IPC_LOCK
|
||||||
devices:
|
privileged: true
|
||||||
- "/dev/infiniband:/dev/infiniband:rwm"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
my-custom-bridge:
|
my-custom-bridge:
|
||||||
|
|||||||
Reference in New Issue
Block a user