forked from vemulaanvesh/disrubuted_load_test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jmeter_grafana_deploy.yaml
53 lines (52 loc) · 1.51 KB
/
jmeter_grafana_deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: jmeter-grafana
labels:
app: jmeter-grafana
spec:
replicas: 1
selector:
matchLabels:
app: jmeter-grafana
template:
metadata:
labels:
app: jmeter-grafana
spec:
containers:
- name: grafana
# image: acrpocs.azurecr.io/grafana:latest
image: grafana/grafana:7.0.2-ubuntu
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3000
protocol: TCP
env:
- name: GF_AUTH_BASIC_ENABLED
value: "true"
- name: GF_USERS_ALLOW_ORG_CREATE
value: "true"
- name: GF_AUTH_ANONYMOUS_ENABLED
value: "true"
- name: GF_AUTH_ANONYMOUS_ORG_ROLE
value: Admin
- name: GF_SERVER_ROOT_URL
# If you're only using the API Server proxy, set this value instead:
# value: /api/v1/namespaces/kube-system/services/monitoring-grafana/proxy
value: /
# ---------------------pvc-----------------------------------
volumeMounts:
- mountPath: /tmp/lib/grafana/
name: grafana-home-physical-volume
- mountPath: /tmp/grafana/
name: grafana-conf-physical-volume
restartPolicy: Always
serviceAccountName: ""
volumes:
- name: grafana-home-physical-volume
persistentVolumeClaim:
claimName: grafana-home-pvc
- name: grafana-conf-physical-volume
persistentVolumeClaim:
claimName: grafana-conf-pvc