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 |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 46 | annotations: |
| 47 | cni: "calico" |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 48 | spec: |
| 49 | containers: |
| 50 | - name: grafana |
| 51 | image: kamon/grafana_graphite:3.0 |
| 52 | ports: |
| 53 | - containerPort: 80 |
| 54 | - containerPort: 2003 |
| 55 | - containerPort: 2004 |
| 56 | - containerPort: 8126 |
| 57 | - containerPort: 8125 |
| 58 | env: |
| 59 | - name: GR_SERVER_ROOT_URL |
| 60 | value: "http://localhost:80/grafana/" |