blob: 51511a84f05569bf45cb051678ef922fc87903b3 [file] [log] [blame]
Gopinath Tagete2dff4d2018-03-15 17:22:28 -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.
14
15#
16# The dashd deployment
17#
18apiVersion: apps/v1beta1
19kind: Deployment
20metadata:
21 name: dashd
22 namespace: {{ .Values.global.namespace }}
23 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
24spec:
25 replicas: 1
26 template:
27 metadata:
28 labels:
29 app: dashd
30 spec:
31 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
32 containers:
33 - name: dashd
Matteo Scandolof6c28df2018-05-08 11:44:05 -070034 image: {{ .Values.dashdImage }}
35 imagePullPolicy: {{ .Values.imagePullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070036 env:
37 - name: NAMESPACE
38 valueFrom:
39 fieldRef:
40 fieldPath: metadata.namespace
41 args:
42 - "/dashd/dashd/main.py"
43 - "--kafka={{ .Release.Name }}-kafka.default.svc.cluster.local"
44 - "--grafana_url=http://admin:admin@grafana.$(NAMESPACE).svc.cluster.local:80/api"
45 - "--topic=voltha.kpis"
46 #- "--consul=consul:8500"
47---
48#
49# The shovel deployment
50#
51apiVersion: apps/v1beta1
52kind: Deployment
53metadata:
54 name: shovel
55 namespace: {{ .Values.global.namespace }}
56 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
57spec:
58 replicas: 1
59 template:
60 metadata:
61 labels:
62 app: shovel
63 spec:
64 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
65 containers:
66 - name: shovel
Matteo Scandolof6c28df2018-05-08 11:44:05 -070067 image: {{ .Values.shovelImage }}
68 imagePullPolicy: {{ .Values.imagePullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070069 env:
70 - name: NAMESPACE
71 valueFrom:
72 fieldRef:
73 fieldPath: metadata.namespace
74 args:
75 - "/shovel/shovel/main.py"
76 - "--kafka={{ .Release.Name }}-kafka.default.svc.cluster.local"
77 - "--host=grafana.voltha.svc.cluster.local"
78 - "--topic=voltha.kpis"
79 #- "--consul=consul:8500"