Skip to content

Commit ee896ef

Browse files
refactor(grafana): add annotations and environment variables for improved configuration management for grafana
1 parent 74e5f07 commit ee896ef

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

infra/helm/skillForgeAi/templates/monitoring/grafana/grafana-deployment.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ spec:
1717
labels:
1818
{{- include "skillForgeAi.selectorLabels" . | nindent 8 }}
1919
component: grafana
20+
annotations:
21+
checksum/config: "{{ randAlphaNum 8 }}"
22+
checksum/datasources: "{{ randAlphaNum 8 }}"
23+
checksum/dashboards: "{{ randAlphaNum 8 }}"
2024
spec:
2125
securityContext:
2226
fsGroup: 472
@@ -50,6 +54,16 @@ spec:
5054
value: "true"
5155
- name: GF_ALERTING_ENABLED
5256
value: "false"
57+
- name: GF_USERS_ALLOW_SIGN_UP
58+
value: "false"
59+
- name: GF_SERVER_DOMAIN
60+
value: "grafana.student.k8s.aet.cit.tum.de"
61+
- name: GF_SERVER_ENFORCE_DOMAIN
62+
value: "true"
63+
- name: GF_LOG_LEVEL
64+
value: "info"
65+
- name: GF_INSTALL_PLUGINS
66+
value: "grafana-clock-panel,grafana-simple-json-datasource"
5367
securityContext:
5468
runAsNonRoot: true
5569
runAsUser: 472

0 commit comments

Comments
 (0)