Skip to content

Commit

Permalink
fix: modprobe command error with aznfs mount
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Dec 1, 2023
1 parent db1eb6d commit 49caccb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Binary file modified charts/latest/blob-csi-driver-v1.23.2.tgz
Binary file not shown.
7 changes: 7 additions & 0 deletions charts/latest/blob-csi-driver/templates/csi-blob-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ spec:
{{- if .Values.node.enableAznfsMount }}
- mountPath: /opt/microsoft/aznfs/data
name: aznfs-data
- mountPath: /lib/modules
name: lib-modules
readOnly: true
{{- end }}
resources: {{- toYaml .Values.node.resources.blob | nindent 12 }}
{{- if .Values.node.enableAznfsMount }}
Expand Down Expand Up @@ -313,6 +316,10 @@ spec:
path: /opt/microsoft/aznfs/data
type: DirectoryOrCreate
name: aznfs-data
- name: lib-modules
hostPath:
path: /lib/modules
type: DirectoryOrCreate
{{- end }}
{{- if .Values.securityContext }}
securityContext: {{- toYaml .Values.securityContext | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion pkg/blobplugin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN chmod +x /blobfuse-proxy/init.sh && \
chmod +x /blobfuse-proxy/blobfuse-proxy

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

# install aznfs
RUN if [ "$ARCH" = "amd64" ] ; then \
Expand Down

0 comments on commit 49caccb

Please sign in to comment.