blob: a7b9a70b3f0f03af334e4d6555822cb78c285519 [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
34 image: {{ .Values.pull_docker_registry }}{{ .Values.images.dashd.repository }}:{{ .Values.images.dashd.tag }}
35 imagePullPolicy: {{ .Values.image_pull_policy }}
36 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
67 image: {{ .Values.pull_docker_registry }}{{ .Values.images.shovel.repository }}:{{ .Values.images.shovel.tag }}
68 imagePullPolicy: {{ .Values.image_pull_policy }}
69 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"