Skip to content

Commit

Permalink
fix: Mount /etc/modprobe.d/ib_core.conf to OFED container (#943)
Browse files Browse the repository at this point in the history
We need to mount host `/etc/modprobe.d/ib_core.conf` config into the
container to not break host RDMA subsystem configuration.
  • Loading branch information
e0ne committed Jun 5, 2024
2 parents f680aa7 + 3e80b48 commit ad89c88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/state-ofed-driver/0050_ofed-driver-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ spec:
mountPath: /host/lib/modules
- name: drivers-inventory
mountPath: /mnt/drivers-inventory
- name: host-ib-core
mountPath: /etc/modprobe.d/ib_core.conf
{{- if.AdditionalVolumeMounts.VolumeMounts }}
{{- range .AdditionalVolumeMounts.VolumeMounts }}
- name: {{ .Name }}
Expand Down Expand Up @@ -235,6 +237,10 @@ spec:
hostPath:
path: /var/opt/mofed-container/inventory
type: DirectoryOrCreate
- name: host-ib-core
hostPath:
path: /etc/modprobe.d/ib_core.conf
type: FileOrCreate
{{- range .AdditionalVolumeMounts.Volumes }}
- name: {{ .Name }}
{{- if and .ConfigMap .ConfigMap.Items }}
Expand Down

0 comments on commit ad89c88

Please sign in to comment.