Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # 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 Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 14 | # |
| 15 | # The grafana service |
| 16 | # |
| 17 | apiVersion: v1 |
| 18 | kind: Service |
| 19 | metadata: |
| 20 | name: grafana |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 21 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 22 | spec: |
| 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 | --- |
| 48 | apiVersion: apps/v1beta1 |
| 49 | kind: Deployment |
| 50 | metadata: |
| 51 | name: grafana |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 52 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 53 | spec: |
| 54 | replicas: 1 |
| 55 | template: |
| 56 | metadata: |
| 57 | labels: |
| 58 | app: grafana |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 59 | annotations: |
| 60 | cni: "calico" |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 61 | 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/" |