blob: 284cbd6e0eeb1271fef14654d30df140c45df99a [file] [log] [blame]
Richard Jankowskic3c291c2018-02-02 13:57:33 -05001#
2# The grafana service
3#
4apiVersion: v1
5kind: Service
6metadata:
7 name: grafana
Richard Jankowskid4454382018-02-08 16:21:43 -05008 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -05009spec:
10 clusterIP: None
11 selector:
12 app: grafana
13 ports:
14 - name: ui-port
15 protocol: TCP
16 port: 8883
17 targetPort: 80
18 - name: port-2003
19 protocol: TCP
20 port: 2003
21 targetPort: 2003
22 - name: port-2004
23 protocol: TCP
24 port: 2004
25 targetPort: 2004
26 - name: port-8126
27 protocol: TCP
28 port: 8126
29 targetPort: 8126
30 - name: port-8125
31 protocol: TCP
32 port: 8125
33 targetPort: 8125
34---
35apiVersion: apps/v1beta1
36kind: Deployment
37metadata:
38 name: grafana
Richard Jankowskid4454382018-02-08 16:21:43 -050039 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050040spec:
41 replicas: 1
42 template:
43 metadata:
44 labels:
45 app: grafana
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040046 annotations:
47 cni: "calico"
Richard Jankowskic3c291c2018-02-02 13:57:33 -050048 spec:
49 containers:
50 - name: grafana
51 image: kamon/grafana_graphite:3.0
52 ports:
53 - containerPort: 80
54 - containerPort: 2003
55 - containerPort: 2004
56 - containerPort: 8126
57 - containerPort: 8125
58 env:
59 - name: GR_SERVER_ROOT_URL
60 value: "http://localhost:80/grafana/"