Skip to content

Commit de91c46

Browse files
committed
[velero] Fix: support for block volumes in velero helm
Signed-off-by: sinhaashish <[email protected]>
1 parent 36d80be commit de91c46

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

charts/velero/templates/node-agent-daemonset.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ spec:
7272
- name: host-pods
7373
hostPath:
7474
path: {{ .Values.nodeAgent.podVolumePath }}
75+
- name: host-plugins
76+
hostPath:
77+
path: {{ .Values.nodeAgent.pluginVolumePath }}
7578
{{- if .Values.nodeAgent.useScratchEmptyDir }}
7679
- name: scratch
7780
emptyDir: {}
@@ -120,6 +123,9 @@ spec:
120123
- name: host-pods
121124
mountPath: /host_pods
122125
mountPropagation: HostToContainer
126+
- name: host-plugins
127+
mountPath: /var/lib/kubelet/plugins
128+
mountPropagation: HostToContainer
123129
{{- if .Values.nodeAgent.useScratchEmptyDir }}
124130
- name: scratch
125131
mountPath: /scratch

charts/velero/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ deployNodeAgent: false
536536

537537
nodeAgent:
538538
podVolumePath: /var/lib/kubelet/pods
539+
pluginVolumePath: /var/lib/kubelet/plugins
539540
# Pod priority class name to use for the node-agent daemonset. Optional.
540541
priorityClassName: ""
541542
# Resource requests/limits to specify for the node-agent daemonset deployment. Optional.

0 commit comments

Comments
 (0)