feat(Grafana): Configure grafana from values.yaml

!4
This commit is contained in:
2023-09-30 12:14:47 +09:30
parent 0c296c173e
commit b047f33e27
2 changed files with 22 additions and 9 deletions

View File

@ -11,13 +11,7 @@ metadata:
namespace: "{{ .Values.nfc_monitoring.grafana.namespace }}"
spec:
config:
log:
mode: "console"
auth:
disable_login_form: "false"
security:
admin_user: "{{ .Values.nfc_monitoring.grafana.admin_user }}"
admin_password: "{{ .Values.nfc_monitoring.grafana.admin_password }}"
{{ toYaml $.Values.nfc_monitoring.grafana.config | nindent 4 }}
deployment:
metadata:
labels:

View File

@ -26,6 +26,24 @@ nfc_monitoring:
grafana:
# Grafana Configuration
# Type: Dict
# See: https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana
config:
analytics:
enabled: 'false'
# database:
# type: mysql
# host: mariadb-galera.mariadb.svc:3306
# name: grafana
# user: root
# password: admin
log:
mode: "console"
auth:
disable_login_form: "false"
security:
admin_user: admin
admin_password: admin
@ -362,6 +380,7 @@ nfc_monitoring:
enabled: true
# Network Policies to apply. These policies are automagically build using the values below.
# What you would find under path root.spec belongs here.
#
# Do:
# - Define 'Ingress'