Skip to content

Commit 0c25693

Browse files
authored
Merge pull request #718 from andyzhangx/fix-tmp-path-mount-issue
fix: unmount detection failure
2 parents 07d6c43 + 9e9e963 commit 0c25693

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed
17 Bytes
Binary file not shown.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ spec:
140140
volumeMounts:
141141
- name: socket-dir
142142
mountPath: /csi
143+
- name: tmp-dir
144+
mountPath: /tmp
143145
- name: pods-mount-dir
144146
mountPath: {{ .Values.kubeletDir }}/pods
145147
mountPropagation: "Bidirectional"
@@ -155,6 +157,8 @@ spec:
155157
hostPath:
156158
path: {{ .Values.kubeletDir }}/plugins/csi-nfsplugin
157159
type: DirectoryOrCreate
160+
- name: tmp-dir
161+
emptyDir: {}
158162
- name: pods-mount-dir
159163
hostPath:
160164
path: {{ .Values.kubeletDir }}/pods

deploy/csi-nfs-controller.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ spec:
140140
mountPropagation: "Bidirectional"
141141
- mountPath: /csi
142142
name: socket-dir
143+
- name: tmp-dir
144+
mountPath: /tmp
143145
resources:
144146
limits:
145147
memory: 200Mi
@@ -151,5 +153,7 @@ spec:
151153
hostPath:
152154
path: /var/lib/kubelet/pods
153155
type: Directory
156+
- name: tmp-dir
157+
emptyDir: {}
154158
- name: socket-dir
155159
emptyDir: {}

deploy/csi-nfs-node.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ spec:
118118
volumeMounts:
119119
- name: socket-dir
120120
mountPath: /csi
121+
- name: tmp-dir
122+
mountPath: /tmp
121123
- name: pods-mount-dir
122124
mountPath: /var/lib/kubelet/pods
123125
mountPropagation: "Bidirectional"
@@ -132,6 +134,8 @@ spec:
132134
hostPath:
133135
path: /var/lib/kubelet/plugins/csi-nfsplugin
134136
type: DirectoryOrCreate
137+
- name: tmp-dir
138+
emptyDir: {}
135139
- name: pods-mount-dir
136140
hostPath:
137141
path: /var/lib/kubelet/pods

0 commit comments

Comments
 (0)