Skip to content

Commit 763ed4b

Browse files
committed
Update vfio-manager daemonset to use k8s-driver-manager image
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
1 parent b87cbf4 commit 763ed4b

File tree

3 files changed

+8
-244
lines changed

3 files changed

+8
-244
lines changed

assets/state-vfio-manager/0400_configmap.yaml

Lines changed: 0 additions & 234 deletions
This file was deleted.
File renamed without changes.

assets/state-vfio-manager/0600_daemonset.yaml renamed to assets/state-vfio-manager/0500_daemonset.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,18 @@ spec:
6262
imagePullPolicy: IfNotPresent
6363
command: ["/bin/sh", "-c"]
6464
args:
65-
- /bin/vfio-manage.sh bind --all && sleep inf
65+
- vfio-manage bind --all && while true; do sleep 86400; done
6666
resources:
6767
limits:
6868
memory: 200Mi
6969
requests:
7070
cpu: 100m
7171
memory: 200Mi
7272
volumeMounts:
73-
- name: nvidia-vfio-manager
74-
readOnly: true
75-
mountPath: /bin/vfio-manage.sh
76-
subPath: vfio-manage.sh
7773
- name: host-sys
7874
mountPath: /sys
75+
- name: host-lib-modules
76+
mountPath: /lib/modules
7977
- name: host-root
8078
mountPath: /host
8179
securityContext:
@@ -85,17 +83,17 @@ spec:
8583
lifecycle:
8684
preStop:
8785
exec:
88-
command: ["/bin/sh", "-c", "/bin/vfio-manage.sh unbind --all"]
86+
command: ["vfio-manage unbind --all"]
8987
terminationGracePeriodSeconds: 30
9088
volumes:
91-
- name: nvidia-vfio-manager
92-
configMap:
93-
name: nvidia-vfio-manager
94-
defaultMode: 448
9589
- name: host-sys
9690
hostPath:
9791
path: /sys
9892
type: Directory
93+
- name: host-lib-modules
94+
hostPath:
95+
path: /lib/modules
96+
type: Directory
9997
- name: run-nvidia
10098
hostPath:
10199
path: /run/nvidia

0 commit comments

Comments
 (0)