File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 60
60
name : socket-dir
61
61
- mountPath : /registration
62
62
name : registration-dir
63
+ - mountPath : /csi-data-dir
64
+ name : csi-data-dir
63
65
64
66
- name : hostpath
65
67
image : quay.io/k8scsi/hostpathplugin:v1.0.1
@@ -104,3 +106,8 @@ spec:
104
106
path : /var/lib/kubelet/plugins
105
107
type : Directory
106
108
name : plugins-dir
109
+ # 'path' is where PV data is persisted on host.
110
+ # using /tmp is also possible while the PVs will not available after plugin container recreation or host reboot
111
+ path : /var/lib/csi-hostpath-data/
112
+ type : DirectoryOrCreate
113
+ name : csi-data-dir
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ import (
38
38
39
39
const (
40
40
deviceID = "deviceID"
41
- provisionRoot = "/tmp/ "
42
- snapshotRoot = "/tmp/ "
41
+ provisionRoot = "/csi-data-dir "
42
+ snapshotRoot = "/csi-data-dir "
43
43
maxStorageCapacity = tib
44
44
)
45
45
You can’t perform that action at this time.
0 commit comments