| 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 | ||||
| 8 | spec: | ||||
| 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 | --- | ||||
| 34 | apiVersion: apps/v1beta1 | ||||
| 35 | kind: Deployment | ||||
| 36 | metadata: | ||||
| 37 | name: grafana | ||||
| 38 | spec: | ||||
| 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/" | ||||