Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 1 | # |
| 2 | # The dashd deployment |
| 3 | # |
| 4 | apiVersion: apps/v1beta1 |
| 5 | kind: Deployment |
| 6 | metadata: |
| 7 | name: dashd |
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 | replicas: 1 |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: dashd |
| 15 | spec: |
| 16 | containers: |
| 17 | - name: dashd |
| 18 | image: voltha-dashd |
| 19 | imagePullPolicy: Never |
| 20 | env: |
| 21 | - name: NAMESPACE |
| 22 | valueFrom: |
| 23 | fieldRef: |
| 24 | fieldPath: metadata.namespace |
| 25 | args: |
| 26 | - "/dashd/dashd/main.py" |
| 27 | - "--kafka=kafka.$(NAMESPACE).svc.cluster.local" |
| 28 | - "--consul=consul:8500" |
| 29 | - "--grafana_url=http://admin:admin@grafana.$(NAMESPACE).svc.cluster.local:80/api" |
| 30 | - "--topic=voltha.kpis" |
| 31 | --- |
| 32 | # |
| 33 | # The shovel deployment |
| 34 | # |
| 35 | apiVersion: apps/v1beta1 |
| 36 | kind: Deployment |
| 37 | metadata: |
| 38 | name: shovel |
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: shovel |
| 46 | spec: |
| 47 | containers: |
| 48 | - name: shovel |
| 49 | image: voltha-shovel |
| 50 | imagePullPolicy: Never |
| 51 | env: |
| 52 | - name: NAMESPACE |
| 53 | valueFrom: |
| 54 | fieldRef: |
| 55 | fieldPath: metadata.namespace |
| 56 | args: |
| 57 | - "/shovel/shovel/main.py" |
| 58 | - "--kafka=kafka.$(NAMESPACE).svc.cluster.local" |
| 59 | - "--consul=consul:8500" |
| 60 | - "--host=grafana.$(NAMESPACE).svc.cluster.local" |
| 61 | - "--topic=voltha.kpis" |