blob: 10997b8341e875b3909a46fa48816fe84b1c3046 [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
46 spec:
47 containers:
48 - name: grafana
49 image: kamon/grafana_graphite:3.0
50 ports:
51 - containerPort: 80
52 - containerPort: 2003
53 - containerPort: 2004
54 - containerPort: 8126
55 - containerPort: 8125
56 env:
57 - name: GR_SERVER_ROOT_URL
58 value: "http://localhost:80/grafana/"