fix: unmount detection failure

This commit is contained in:
andyzhangx 2024-07-22 13:45:52 +00:00
parent 07d6c43418
commit 9e9e963df6
4 changed files with 12 additions and 0 deletions

View File

@ -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"
@ -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

View File

@ -140,6 +140,8 @@ spec:
mountPropagation: "Bidirectional"
- mountPath: /csi
name: socket-dir
- name: tmp-dir
mountPath: /tmp
resources:
limits:
memory: 200Mi
@ -151,5 +153,7 @@ spec:
hostPath:
path: /var/lib/kubelet/pods
type: Directory
- name: tmp-dir
emptyDir: {}
- name: socket-dir
emptyDir: {}

View File

@ -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"
@ -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