Skip to content

Commit ceceeb8

Browse files
authored
fix: use kubeletDir for /var/lib/kubelet/pods (#66)
* fix: use kubeletDir for /var/lib/kubelet/pods * fix: use kubeletDir for mount target path as well mounter pod uses k8s API returned mount target path, which *is* in real kubelet dir path. thus we need to mount to real path inside the container too to make everything work
1 parent 20e033f commit ceceeb8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

charts/templates/csi-rclone-controller.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ spec:
128128
periodSeconds: 30
129129
volumeMounts:
130130
- name: pods-mount-dir
131-
mountPath: /var/lib/kubelet/pods
131+
mountPath: {{ .Values.kubeletDir }}/pods
132132
mountPropagation: "Bidirectional"
133133
- mountPath: /csi
134134
name: socket-dir
@@ -137,7 +137,7 @@ spec:
137137
volumes:
138138
- name: pods-mount-dir
139139
hostPath:
140-
path: /var/lib/kubelet/pods
140+
path: {{ .Values.kubeletDir }}/pods
141141
type: Directory
142142
- name: socket-dir
143143
emptyDir: {}

charts/templates/csi-rclone-node.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ spec:
172172
periodSeconds: 30
173173
volumeMounts:
174174
- name: pods-mount-dir
175-
mountPath: /var/lib/kubelet/pods
175+
mountPath: {{ .Values.kubeletDir }}/pods
176176
mountPropagation: "Bidirectional"
177177
- mountPath: /csi
178178
name: plugin-dir
@@ -185,7 +185,7 @@ spec:
185185
volumes:
186186
- name: pods-mount-dir
187187
hostPath:
188-
path: /var/lib/kubelet/pods
188+
path: {{ .Values.kubeletDir }}/pods
189189
type: Directory
190190
- name: socket-dir
191191
emptyDir: {}

0 commit comments

Comments
 (0)