Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ spec:
volumeMounts:
- mountPath: /csi
name: socket-dir
- mountPath: {{ .Values.linux.kubelet }}/
- mountPath: {{ .Values.linux.kubelet }}/pods
mountPropagation: Bidirectional
name: mountpoint-dir
- mountPath: /etc/kubernetes/
Expand Down Expand Up @@ -283,7 +283,7 @@ spec:
type: DirectoryOrCreate
name: socket-dir
- hostPath:
path: {{ .Values.linux.kubelet }}/
path: {{ .Values.linux.kubelet }}/pods
type: DirectoryOrCreate
name: mountpoint-dir
- hostPath:
Expand Down
8 changes: 4 additions & 4 deletions deploy/csi-azurefile-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
- name: host-etc
mountPath: /host/etc
- name: mountpoint-dir
mountPath: /var/lib/kubelet/
mountPath: /var/lib/kubelet/pods
mountPropagation: Bidirectional
containers:
- name: liveness-probe
Expand Down Expand Up @@ -159,7 +159,7 @@ spec:
volumeMounts:
- mountPath: /csi
name: socket-dir
- mountPath: /var/lib/kubelet/
- mountPath: /var/lib/kubelet/pods

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the globalmount is under /var/lib/kubelet/plugins/kubernetes.io/csi///globalmount, we should keep that mount path, thus I would recommend keep /var/lib/kubelet/

mountPropagation: Bidirectional
name: mountpoint-dir
- mountPath: /etc/kubernetes/
Expand Down Expand Up @@ -189,7 +189,7 @@ spec:
drop:
- ALL
volumeMounts:
- mountPath: /var/lib/kubelet/
- mountPath: /var/lib/kubelet/pods
mountPropagation: Bidirectional
name: mountpoint-dir
- name: azfilesauth
Expand Down Expand Up @@ -218,7 +218,7 @@ spec:
type: DirectoryOrCreate
name: socket-dir
- hostPath:
path: /var/lib/kubelet/
path: /var/lib/kubelet/pods
type: DirectoryOrCreate
name: mountpoint-dir
- hostPath:
Expand Down