Skip to content

Commit 49caccb

Browse files
committed
fix: modprobe command error with aznfs mount
1 parent db1eb6d commit 49caccb

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed
29 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
@@ -244,6 +244,9 @@ spec:
244244
{{- if .Values.node.enableAznfsMount }}
245245
- mountPath: /opt/microsoft/aznfs/data
246246
name: aznfs-data
247+
- mountPath: /lib/modules
248+
name: lib-modules
249+
readOnly: true
247250
{{- end }}
248251
resources: {{- toYaml .Values.node.resources.blob | nindent 12 }}
249252
{{- if .Values.node.enableAznfsMount }}
@@ -313,6 +316,10 @@ spec:
313316
path: /opt/microsoft/aznfs/data
314317
type: DirectoryOrCreate
315318
name: aznfs-data
319+
- name: lib-modules
320+
hostPath:
321+
path: /lib/modules
322+
type: DirectoryOrCreate
316323
{{- end }}
317324
{{- if .Values.securityContext }}
318325
securityContext: {{- toYaml .Values.securityContext | nindent 8 }}

pkg/blobplugin/Dockerfile

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

3737
# packages that are only needed by aznfs: procps conntrack iptables bind9-host iproute2 bash netcat sysvinit-utils.
38-
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
38+
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
3939

4040
# install aznfs
4141
RUN if [ "$ARCH" = "amd64" ] ; then \

0 commit comments

Comments
 (0)