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