blob: ab9ecd38fb6f22212c9afc1767d77eb0df238db2 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Richard Jankowskic3c291c2018-02-02 13:57:33 -050014#
15# The grafana service
16#
17apiVersion: v1
18kind: Service
19metadata:
20 name: grafana
Richard Jankowskid4454382018-02-08 16:21:43 -050021 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050022spec:
23 clusterIP: None
24 selector:
25 app: grafana
26 ports:
27 - name: ui-port
28 protocol: TCP
29 port: 8883
30 targetPort: 80
31 - name: port-2003
32 protocol: TCP
33 port: 2003
34 targetPort: 2003
35 - name: port-2004
36 protocol: TCP
37 port: 2004
38 targetPort: 2004
39 - name: port-8126
40 protocol: TCP
41 port: 8126
42 targetPort: 8126
43 - name: port-8125
44 protocol: TCP
45 port: 8125
46 targetPort: 8125
47---
48apiVersion: apps/v1beta1
49kind: Deployment
50metadata:
51 name: grafana
Richard Jankowskid4454382018-02-08 16:21:43 -050052 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050053spec:
54 replicas: 1
55 template:
56 metadata:
57 labels:
58 app: grafana
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040059 annotations:
60 cni: "calico"
Richard Jankowskic3c291c2018-02-02 13:57:33 -050061 spec:
62 containers:
63 - name: grafana
64 image: kamon/grafana_graphite:3.0
65 ports:
66 - containerPort: 80
67 - containerPort: 2003
68 - containerPort: 2004
69 - containerPort: 8126
70 - containerPort: 8125
71 env:
72 - name: GR_SERVER_ROOT_URL
73 value: "http://localhost:80/grafana/"