Skip to content

Commit 4c207cd

Browse files
authored
feat: Grafana-MCP Helm Chart Volume Mounts & Additional Arguments (kagent-dev#1081)
This adds the possibility to add Volume Mounts and Arguments to the binary to the Grafana MCP Deployment Signed-off-by: schmiddim <schmiddim@gmx.at>
1 parent d46efdc commit 4c207cd

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

helm/tools/grafana-mcp/templates/deployment.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ spec:
3636
args:
3737
- --transport
3838
- streamable-http
39+
{{- with .Values.args }}
40+
{{- toYaml . | nindent 12 }}
41+
{{- end }}
3942
resources:
4043
{{- toYaml .Values.resources | nindent 12 }}
44+
{{- with .Values.volumeMounts }}
45+
volumeMounts:
46+
{{- toYaml . | nindent 12 }}
47+
{{- end }}
4148
envFrom:
4249
- configMapRef:
4350
name: {{ include "grafana-mcp.fullname" . }}
@@ -46,4 +53,8 @@ spec:
4653
ports:
4754
- name: http
4855
containerPort: {{ .Values.service.port }}
49-
protocol: TCP
56+
protocol: TCP
57+
{{- with .Values.volumes }}
58+
volumes:
59+
{{- toYaml . | nindent 8 }}
60+
{{- end }}

helm/tools/grafana-mcp/values.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,22 @@ resources:
3636
cpu: 500m
3737
memory: 512Mi
3838

39+
# Additional Arguments for the mcp server
40+
args: []
41+
42+
# Additional volumes on the output Deployment definition.
43+
volumes: []
44+
# - name: foo
45+
# secret:
46+
# secretName: mysecret
47+
# optional: false
48+
49+
# Additional volumeMounts on the output Deployment definition.
50+
volumeMounts: []
51+
# - name: foo
52+
# mountPath: "/etc/foo"
53+
# readOnly: true
54+
3955
# Deployment configuration - used to populate the ConfigMap template.
4056
# Add custom configuration values here as needed.
4157
config:

0 commit comments

Comments
 (0)