-
Notifications
You must be signed in to change notification settings - Fork 0
/
grafana-deployment.yaml
57 lines (57 loc) · 1.22 KB
/
grafana-deployment.yaml
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
apiVersion: v1
kind: Service
metadata:
labels:
app: etsi-iot-week-grafana
name: grafana
spec:
ports:
- port: 3000
targetPort: 3000
selector:
app: etsi-iot-week-grafana
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: etsi-iot-week-grafana
name: grafana
spec:
selector:
matchLabels:
app: etsi-iot-week-grafana
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: etsi-iot-week-grafana
spec:
containers:
- image: grafana/grafana
name: grafana
env:
- name: GF_SERVER_ROOT_URL
value: http://localhost:3000/grafana/
- name: GF_SERVER_SERVE_FROM_SUB_PATH
value: "true"
- name: GF_AUTH_BASIC_ENABLED
value: "false"
- name: GF_AUTH_ANONYMOUS_ENABLED
value: "true"
- name: GF_AUTH_ANONYMOUS_ORG_ROLE
value: Admin
ports:
- containerPort: 3000
volumeMounts:
- mountPath: /var/lib/grafana
name: grafana-pv
restartPolicy: Always
securityContext:
fsGroup: 472
volumes:
- name: grafana-pv
persistentVolumeClaim:
claimName: grafana-pv-claim