From 17643f61d62047642cd8e5aef155497d056463d5 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 16 Jun 2021 07:05:50 +0200 Subject: [PATCH] Grafana: Enable anonymous access --- conf-grafana/grafana.ini | 3 +++ learn-metrics.yaml | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 conf-grafana/grafana.ini diff --git a/conf-grafana/grafana.ini b/conf-grafana/grafana.ini new file mode 100644 index 0000000..256888f --- /dev/null +++ b/conf-grafana/grafana.ini @@ -0,0 +1,3 @@ +[auth.anonymous] +# enable anonymous access +enabled = true diff --git a/learn-metrics.yaml b/learn-metrics.yaml index bc1d913..38cc24e 100644 --- a/learn-metrics.yaml +++ b/learn-metrics.yaml @@ -16,6 +16,9 @@ spec: hostPort: 3000 protocol: TCP volumeMounts: + - name: grafana-config + mountPath: /opt/bitnami/grafana/conf/grafana.ini + readOnly: true - name: grafana-datasource mountPath: /etc/grafana/provisioning/datasources/datasource.yaml readOnly: true @@ -43,6 +46,10 @@ spec: path: ./conf-grafana/datasource.yaml type: File name: grafana-datasource + - hostPath: + path: ./conf-grafana/grafana.ini + type: File + name: grafana-config - hostPath: path: ./conf-prometheus name: prometheus-config -- 2.39.5