File tree Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ The following table lists the configurable parameters of the latest NFS CSI Driv
40
40
| ` driver.mountPermissions ` | mounted folder permissions name | ` 0777 `
41
41
| ` feature.enableFSGroupPolicy ` | enable ` fsGroupPolicy ` on a k8s 1.20+ cluster | ` true ` |
42
42
| ` feature.enableInlineVolume ` | enable inline volume | ` false ` |
43
+ | ` kubeletDir ` | alternative kubelet directory | ` /var/lib/kubelet ` |
43
44
| ` image.nfs.repository ` | csi-driver-nfs image | ` mcr.microsoft.com/k8s/csi/nfs-csi ` |
44
45
| ` image.nfs.tag ` | csi-driver-nfs image tag | ` latest ` |
45
46
| ` image.nfs.pullPolicy ` | csi-driver-nfs image pull policy | ` IfNotPresent ` |
Original file line number Diff line number Diff line change @@ -95,15 +95,15 @@ spec:
95
95
periodSeconds : 30
96
96
volumeMounts :
97
97
- name : pods-mount-dir
98
- mountPath : /var/lib/kubelet /pods
98
+ mountPath : {{ .Values.kubeletDir }} /pods
99
99
mountPropagation : " Bidirectional"
100
100
- mountPath : /csi
101
101
name : socket-dir
102
102
resources : {{- toYaml .Values.controller.resources.nfs | nindent 12 }}
103
103
volumes :
104
104
- name : pods-mount-dir
105
105
hostPath :
106
- path : /var/lib/kubelet /pods
106
+ path : {{ .Values.kubeletDir }} /pods
107
107
type : Directory
108
108
- name : socket-dir
109
109
emptyDir : {}
Original file line number Diff line number Diff line change 60
60
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
61
61
env :
62
62
- name : DRIVER_REG_SOCK_PATH
63
- value : /var/lib/kubelet /plugins/csi-nfsplugin/csi.sock
63
+ value : {{ .Values.kubeletDir }} /plugins/csi-nfsplugin/csi.sock
64
64
- name : KUBE_NODE_NAME
65
65
valueFrom :
66
66
fieldRef :
@@ -109,19 +109,19 @@ spec:
109
109
- name : socket-dir
110
110
mountPath : /csi
111
111
- name : pods-mount-dir
112
- mountPath : /var/lib/kubelet /pods
112
+ mountPath : {{ .Values.kubeletDir }} /pods
113
113
mountPropagation : " Bidirectional"
114
114
resources : {{- toYaml .Values.node.resources.nfs | nindent 12 }}
115
115
volumes :
116
116
- name : socket-dir
117
117
hostPath :
118
- path : /var/lib/kubelet /plugins/csi-nfsplugin
118
+ path : {{ .Values.kubeletDir }} /plugins/csi-nfsplugin
119
119
type : DirectoryOrCreate
120
120
- name : pods-mount-dir
121
121
hostPath :
122
- path : /var/lib/kubelet /pods
122
+ path : {{ .Values.kubeletDir }} /pods
123
123
type : Directory
124
124
- hostPath :
125
- path : /var/lib/kubelet /plugins_registry
125
+ path : {{ .Values.kubeletDir }} /plugins_registry
126
126
type : Directory
127
127
name : registration-dir
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ feature:
32
32
enableFSGroupPolicy : true
33
33
enableInlineVolume : false
34
34
35
+ kubeletDir : /var/lib/kubelet
36
+
35
37
controller :
36
38
name : csi-nfs-controller
37
39
replicas : 1
You can’t perform that action at this time.
0 commit comments