From a8deee446363403e82abe529aa3cac505f38cbaa Mon Sep 17 00:00:00 2001 From: Ivan Kolodiazhny Date: Sun, 25 Dec 2022 23:00:02 +0200 Subject: [PATCH] Mount host /lib/modules directory to OFED container /lib/modules is required to re-load original driver on OFED container termination. Signed-off-by: Ivan Kolodiazhny --- manifests/stage-ofed-driver/0050_ofed-driver-ds.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifests/stage-ofed-driver/0050_ofed-driver-ds.yaml b/manifests/stage-ofed-driver/0050_ofed-driver-ds.yaml index 2a7efc82..090ee78c 100644 --- a/manifests/stage-ofed-driver/0050_ofed-driver-ds.yaml +++ b/manifests/stage-ofed-driver/0050_ofed-driver-ds.yaml @@ -79,6 +79,8 @@ spec: mountPath: /host/usr - name: host-udev mountPath: /host/lib/udev + - name: host-lib-modules + mountPath: /host/lib/modules {{- if.AdditionalVolumeMounts.VolumeMounts }} {{- range .AdditionalVolumeMounts.VolumeMounts }} - name: {{ .Name }} @@ -128,6 +130,9 @@ spec: - name: host-udev hostPath: path: /lib/udev + - name: host-lib-modules + hostPath: + path: /lib/modules {{- range .AdditionalVolumeMounts.Volumes }} - name: {{ .Name }} configMap: