Skip to content

Commit

Permalink
Merge pull request #718 from andyzhangx/fix-tmp-path-mount-issue
Browse files Browse the repository at this point in the history
fix: unmount detection failure
  • Loading branch information
andyzhangx authored Jul 23, 2024
2 parents 07d6c43 + 9e9e963 commit 0c25693
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Binary file modified charts/latest/csi-driver-nfs-v0.0.0.tgz
Binary file not shown.
4 changes: 4 additions & 0 deletions charts/latest/csi-driver-nfs/templates/csi-nfs-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: tmp-dir
mountPath: /tmp
- name: pods-mount-dir
mountPath: {{ .Values.kubeletDir }}/pods
mountPropagation: "Bidirectional"
Expand All @@ -155,6 +157,8 @@ spec:
hostPath:
path: {{ .Values.kubeletDir }}/plugins/csi-nfsplugin
type: DirectoryOrCreate
- name: tmp-dir
emptyDir: {}
- name: pods-mount-dir
hostPath:
path: {{ .Values.kubeletDir }}/pods
Expand Down
4 changes: 4 additions & 0 deletions deploy/csi-nfs-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ spec:
mountPropagation: "Bidirectional"
- mountPath: /csi
name: socket-dir
- name: tmp-dir
mountPath: /tmp
resources:
limits:
memory: 200Mi
Expand All @@ -151,5 +153,7 @@ spec:
hostPath:
path: /var/lib/kubelet/pods
type: Directory
- name: tmp-dir
emptyDir: {}
- name: socket-dir
emptyDir: {}
4 changes: 4 additions & 0 deletions deploy/csi-nfs-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: tmp-dir
mountPath: /tmp
- name: pods-mount-dir
mountPath: /var/lib/kubelet/pods
mountPropagation: "Bidirectional"
Expand All @@ -132,6 +134,8 @@ spec:
hostPath:
path: /var/lib/kubelet/plugins/csi-nfsplugin
type: DirectoryOrCreate
- name: tmp-dir
emptyDir: {}
- name: pods-mount-dir
hostPath:
path: /var/lib/kubelet/pods
Expand Down

0 comments on commit 0c25693

Please sign in to comment.