This repository has been archived by the owner on Jan 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
grafana.yml
82 lines (82 loc) · 1.92 KB
/
grafana.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
apiVersion: v1
kind: Service
metadata:
name: grafana
spec:
ports:
- port: 80
targetPort: http
selector:
app: grafana
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: grafana-ingress
spec:
rules:
- host: grafana.edge.int.5pi.de
http:
paths:
- backend:
serviceName: grafana
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: grafana
labels:
app: grafana
spec:
replicas: 1
template:
metadata:
labels:
app: grafana
spec:
containers:
- image: grafana/grafana
name: grafana
resources:
limits:
memory: 80Mi
requests:
cpu: 100m
memory: 50Mi
ports:
- name: http
containerPort: 3000
command: [ "sh", "-c",
"GF_DATABASE_HOST=$POSTGRES_SERVICE_HOST:$POSTGRES_SERVICE_PORT exec /run.sh"
]
env:
- name: GF_USERS_ALLOW_SIGN_UP
value: "false"
- name: GF_DATABASE_TYPE
value: postgres
- name: GF_DATABASE_NAME
value: grafana
- name: GF_DATABASE_USER
value: grafana
- name: GF_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: default
key: pg-grafana-password
- name: GF_AUTH_GOOGLE_ENABLED
value: "true"
- name: GF_AUTH_GOOGLE_ALLOW_SIGN_UP
value: "true"
- name: GF_AUTH_GOOGLE_ALLOWED_DOMAINS
value: freigeist.org textkrieg.de
- name: GF_AUTH_GOOGLE_CLIENT_ID
value: 666698025908-46fck0m1ngeuktl3b7jva23dsl6l0f9l.apps.googleusercontent.com
- name: GF_AUTH_GOOGLE_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: default
key: grafana-gauth-client-secret
- name: GF_SERVER_ROOT_URL
value: https://grafana.edge.int.5pi.de