As the title indicates I'm trying to setup grafana using helmfile with a datasource via values.
I can find the docs here but sadly my knowledge is too limited to make it work.
The relevant part of my helmfile is here
releases:
...
- name: grafana
namespace: grafana
chart: stable/grafana
values:
- datasources:
- name: Prometheus
type: prometheus
url: http://prometheus-server.prometheus.svc.cluster.local
I stumbled upon this and it seems I can also do it via an environment variable but I can't seem to find an easy way to set such in my helmfile.
It would be greatly appreciated if someone with a better understanding of helmfile, json and whatnot could either show me or guide me in the right direction.
Update: Thanks to @WindyFields my final solution is as follows
releases:
...
- name: grafana
namespace: grafana
chart: stable/grafana
values:
- datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus-server.prometheus.svc.cluster.local
isDefault: true