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 |
| 8 | spec: |
| 9 | replicas: 1 |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: dashd |
| 14 | spec: |
| 15 | containers: |
| 16 | - name: dashd |
| 17 | image: voltha-dashd |
| 18 | imagePullPolicy: Never |
| 19 | env: |
| 20 | - name: NAMESPACE |
| 21 | valueFrom: |
| 22 | fieldRef: |
| 23 | fieldPath: metadata.namespace |
| 24 | args: |
| 25 | - "/dashd/dashd/main.py" |
| 26 | - "--kafka=kafka.$(NAMESPACE).svc.cluster.local" |
| 27 | - "--consul=consul:8500" |
| 28 | - "--grafana_url=http://admin:admin@grafana.$(NAMESPACE).svc.cluster.local:80/api" |
| 29 | - "--topic=voltha.kpis" |
| 30 | --- |
| 31 | # |
| 32 | # The shovel deployment |
| 33 | # |
| 34 | apiVersion: apps/v1beta1 |
| 35 | kind: Deployment |
| 36 | metadata: |
| 37 | name: shovel |
| 38 | spec: |
| 39 | replicas: 1 |
| 40 | template: |
| 41 | metadata: |
| 42 | labels: |
| 43 | app: shovel |
| 44 | spec: |
| 45 | containers: |
| 46 | - name: shovel |
| 47 | image: voltha-shovel |
| 48 | imagePullPolicy: Never |
| 49 | env: |
| 50 | - name: NAMESPACE |
| 51 | valueFrom: |
| 52 | fieldRef: |
| 53 | fieldPath: metadata.namespace |
| 54 | args: |
| 55 | - "/shovel/shovel/main.py" |
| 56 | - "--kafka=kafka.$(NAMESPACE).svc.cluster.local" |
| 57 | - "--consul=consul:8500" |
| 58 | - "--host=grafana.$(NAMESPACE).svc.cluster.local" |
| 59 | - "--topic=voltha.kpis" |