Skip to content

Commit 316351c

Browse files
author
Saurav Tiwary
committed
feat: Add kubelet path in helm chart installation
1 parent f3355dc commit 316351c

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

charts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ The following table lists the configurable parameters of the latest Azure Blob S
6060
| `controller.runOnMaster` | run controller on master node |
6161
`false` |
6262
| `node.metricsPort` | metrics port of csi-blob-node | 29635 |
63+
| `kubelet.linuxPath` | configure the kubelet path for Linux node | `/var/lib/kubelet` |
6364

6465
## Troubleshooting
6566
- Add `--wait -v=5 --debug` in `helm install` command to get detailed error

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ spec:
6464
- name: ADDRESS
6565
value: /csi/csi.sock
6666
- name: DRIVER_REG_SOCK_PATH
67-
value: /var/lib/kubelet/plugins/blob.csi.azure.com/csi.sock
67+
value: {{ .Values.kubelet.linuxPath }}/plugins/blob.csi.azure.com/csi.sock
6868
volumeMounts:
6969
- name: socket-dir
7070
mountPath: /csi
@@ -121,7 +121,7 @@ spec:
121121
volumeMounts:
122122
- mountPath: /csi
123123
name: socket-dir
124-
- mountPath: /var/lib/kubelet/
124+
- mountPath: {{ .Values.kubelet.linuxPath }}/
125125
mountPropagation: Bidirectional
126126
name: mountpoint-dir
127127
- mountPath: /etc/kubernetes/
@@ -143,15 +143,15 @@ spec:
143143
memory: 20Mi
144144
volumes:
145145
- hostPath:
146-
path: /var/lib/kubelet/plugins/blob.csi.azure.com
146+
path: {{ .Values.kubelet.linuxPath }}/plugins/blob.csi.azure.com
147147
type: DirectoryOrCreate
148148
name: socket-dir
149149
- hostPath:
150-
path: /var/lib/kubelet/
150+
path: {{ .Values.kubelet.linuxPath }}/
151151
type: DirectoryOrCreate
152152
name: mountpoint-dir
153153
- hostPath:
154-
path: /var/lib/kubelet/plugins_registry/
154+
path: {{ .Values.kubelet.linuxPath }}/plugins_registry/
155155
type: DirectoryOrCreate
156156
name: registration-dir
157157
- hostPath:

charts/latest/blob-csi-driver/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ controller:
3333

3434
node:
3535
metricsPort: 29635
36+
37+
kubelet:
38+
linuxPath: /var/lib/kubelet

0 commit comments

Comments
 (0)