blob: 934c1100d92adb8610b3b467df3e69293ecf57ad [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Richard Jankowskic3c291c2018-02-02 13:57:33 -050014#
15# The dashd deployment
16#
17apiVersion: apps/v1beta1
18kind: Deployment
19metadata:
20 name: dashd
Richard Jankowskid4454382018-02-08 16:21:43 -050021 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050022spec:
23 replicas: 1
24 template:
25 metadata:
26 labels:
27 app: dashd
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040028 annotations:
29 cni: "calico"
Richard Jankowskic3c291c2018-02-02 13:57:33 -050030 spec:
31 containers:
32 - name: dashd
33 image: voltha-dashd
34 imagePullPolicy: Never
35 env:
36 - name: NAMESPACE
37 valueFrom:
38 fieldRef:
39 fieldPath: metadata.namespace
40 args:
41 - "/dashd/dashd/main.py"
42 - "--kafka=kafka.$(NAMESPACE).svc.cluster.local"
43 - "--consul=consul:8500"
44 - "--grafana_url=http://admin:admin@grafana.$(NAMESPACE).svc.cluster.local:80/api"
45 - "--topic=voltha.kpis"
46---
47#
48# The shovel deployment
49#
50apiVersion: apps/v1beta1
51kind: Deployment
52metadata:
53 name: shovel
Richard Jankowskid4454382018-02-08 16:21:43 -050054 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050055spec:
56 replicas: 1
57 template:
58 metadata:
59 labels:
60 app: shovel
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040061 annotations:
62 cni: "calico"
Richard Jankowskic3c291c2018-02-02 13:57:33 -050063 spec:
64 containers:
65 - name: shovel
66 image: voltha-shovel
67 imagePullPolicy: Never
68 env:
69 - name: NAMESPACE
70 valueFrom:
71 fieldRef:
72 fieldPath: metadata.namespace
73 args:
74 - "/shovel/shovel/main.py"
75 - "--kafka=kafka.$(NAMESPACE).svc.cluster.local"
76 - "--consul=consul:8500"
77 - "--host=grafana.$(NAMESPACE).svc.cluster.local"
78 - "--topic=voltha.kpis"