blob: 953e68af0d2ca5856015d03471d00c233c7f7d4c [file] [log] [blame]
Richard Jankowskic3c291c2018-02-02 13:57:33 -05001#
2# The dashd deployment
3#
4apiVersion: apps/v1beta1
5kind: Deployment
6metadata:
7 name: dashd
Richard Jankowskid4454382018-02-08 16:21:43 -05008 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -05009spec:
10 replicas: 1
11 template:
12 metadata:
13 labels:
14 app: dashd
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040015 annotations:
16 cni: "calico"
Richard Jankowskic3c291c2018-02-02 13:57:33 -050017 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#
37apiVersion: apps/v1beta1
38kind: Deployment
39metadata:
40 name: shovel
Richard Jankowskid4454382018-02-08 16:21:43 -050041 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050042spec:
43 replicas: 1
44 template:
45 metadata:
46 labels:
47 app: shovel
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040048 annotations:
49 cni: "calico"
Richard Jankowskic3c291c2018-02-02 13:57:33 -050050 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"