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