Skip to content

Commit 0591b44

Browse files
authored
Merge pull request #1149 from andyzhangx/fix-modprobe-error-1.22
[release-1.22] fix: modprobe command error with aznfs mount
2 parents aa84af9 + d9d9e90 commit 0591b44

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed
235 Bytes
Binary file not shown.

charts/latest/blob-csi-driver/templates/csi-blob-node.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ spec:
242242
{{- if .Values.node.enableAznfsMount }}
243243
- mountPath: /opt/microsoft/aznfs/data
244244
name: aznfs-data
245+
- mountPath: /lib/modules
246+
name: lib-modules
247+
readOnly: true
245248
{{- end }}
246249
resources: {{- toYaml .Values.node.resources.blob | nindent 12 }}
247250
{{- if .Values.node.enableAznfsMount }}
@@ -310,6 +313,10 @@ spec:
310313
path: /opt/microsoft/aznfs/data
311314
type: DirectoryOrCreate
312315
name: aznfs-data
316+
- name: lib-modules
317+
hostPath:
318+
path: /lib/modules
319+
type: DirectoryOrCreate
313320
{{- end }}
314321
{{- if .Values.securityContext }}
315322
securityContext: {{- toYaml .Values.securityContext | nindent 8 }}

pkg/blobplugin/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN chmod +x /blobfuse-proxy/init.sh && \
2929
chmod +x /blobfuse-proxy/blobfuse-proxy
3030

3131
# packages that are only needed by aznfs: procps conntrack iptables bind9-host iproute2 bash netcat sysvinit-utils.
32-
RUN apt update && apt upgrade -y && apt-mark unhold libcap2 && clean-install ca-certificates uuid-dev util-linux mount udev wget e2fsprogs nfs-common netbase procps conntrack iptables bind9-host iproute2 bash netcat-traditional sysvinit-utils
32+
RUN apt update && apt upgrade -y && apt-mark unhold libcap2 && clean-install ca-certificates uuid-dev util-linux mount udev wget e2fsprogs nfs-common netbase procps conntrack iptables bind9-host iproute2 bash netcat-traditional sysvinit-utils kmod
3333

3434
# install aznfs
3535
RUN if [ "$ARCH" = "amd64" ] ; then \

0 commit comments

Comments
 (0)