Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 1 | # |
| 2 | # The grafana service |
| 3 | # |
| 4 | apiVersion: v1 |
| 5 | kind: Service |
| 6 | metadata: |
| 7 | name: grafana |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 8 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 9 | spec: |
| 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 | --- |
| 35 | apiVersion: apps/v1beta1 |
| 36 | kind: Deployment |
| 37 | metadata: |
| 38 | name: grafana |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 39 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 40 | spec: |
| 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/" |