Skip to content

Commit d478c1c

Browse files
volume-support (#604)
1 parent be447ae commit d478c1c

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

charts/kvisor/templates/agent.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ spec:
152152
- name: containerd-sock
153153
mountPath: /run/containerd/containerd.sock
154154
readOnly: true
155+
{{- with .Values.agent.extraVolumeMounts }}
156+
{{- toYaml . | nindent 12 }}
157+
{{- end }}
155158
dnsPolicy: {{.Values.agent.dnsPolicy}}
156159
{{- with .Values.agent.nodeSelector }}
157160
nodeSelector:
@@ -182,6 +185,9 @@ spec:
182185
hostPath:
183186
path: {{ .Values.agent.containerdSocketPath }}
184187
type: Socket
188+
{{- with .Values.agent.extraVolumes }}
189+
{{- toYaml . | nindent 8 }}
190+
{{- end }}
185191
{{- end }}
186192
---
187193
{{- if .Values.agent.serviceAccount.create -}}

charts/kvisor/templates/controller.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ spec:
5252
- name: controller
5353
image: "{{ .Values.image.repository }}-controller:{{ .Values.image.tag | default .Chart.AppVersion }}"
5454
imagePullPolicy: {{.Values.image.pullPolicy}}
55+
volumeMounts:
56+
{{- with .Values.controller.extraVolumeMounts }}
57+
{{- toYaml . | nindent 12 }}
58+
{{- end }}
5559
securityContext:
5660
{{- toYaml .Values.controller.containerSecurityContext | nindent 12 }}
5761
args:
@@ -143,6 +147,10 @@ spec:
143147
tolerations:
144148
{{- toYaml . | nindent 8 }}
145149
{{- end }}
150+
volumes:
151+
{{- with .Values.controller.extraVolumes }}
152+
{{- toYaml . | nindent 8 }}
153+
{{- end }}
146154

147155
{{- end }}
148156
---

charts/kvisor/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ pyroscope:
4949
agent:
5050
enabled: false
5151

52+
# -- Used to set additional volumes.
53+
extraVolumes: []
54+
55+
# -- Used to set additional volume mounts.
56+
extraVolumeMounts: []
57+
5258
serviceAccount:
5359
# Specifies whether a service account should be created
5460
create: true
@@ -145,6 +151,12 @@ agent:
145151
controller:
146152
enabled: true
147153

154+
# -- Used to set additional volumes.
155+
extraVolumes: []
156+
157+
# -- Used to set additional volume mounts.
158+
extraVolumeMounts: []
159+
148160
replicas: 1
149161

150162
serviceAccount:

0 commit comments

Comments
 (0)