blob: 4849648eb84f7b0e6c67b383d3517d96c1503287 [file] [log] [blame]
David Bainbridge2f9b76f2019-05-15 13:48:11 -07001# Copyright 2019-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---
David Bainbridge2f9b76f2019-05-15 13:48:11 -070016apiVersion: apps/v1
17kind: Deployment
18metadata:
19 name: adapter-simulated-olt
20 namespace: {{ .Release.Namespace }}
21spec:
22 replicas: {{ .Values.replicas.adapter_simulated_olt }}
23 selector:
24 matchLabels:
25 app: adapter-simulated-olt
26 template:
27 metadata:
28 labels:
29 app: adapter-simulated-olt
David Bainbridge1f888042019-06-24 18:02:01 +000030 app.kubernetes.io/name: "adapter-simulated-olt"
31 app.kubernetes.io/version: {{ quote .Chart.AppVersion }}
32 app.kubernetes.io/component: "adapter"
33 app.kubernetes.io/part-of: "voltha"
34 app.kubernetes.io/managed-by: {{ quote .Release.Service }}
35 helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
David Bainbridge2f9b76f2019-05-15 13:48:11 -070036 annotations:
37 cni: "calico"
38 spec:
39 containers:
40 - name: adapter-simulated-olt
David Bainbridge5cb5d172019-07-24 02:30:19 +000041 image: {{ tpl .Values.images.adapter_simulated_olt.registry . }}{{ tpl .Values.images.adapter_simulated_olt.repository . }}:{{ tpl ( tpl .Values.images.adapter_simulated_olt.tag . ) . }}
David Bainbridgecd30e542019-05-31 20:52:56 +000042 imagePullPolicy: {{ tpl .Values.images.adapter_simulated_olt.pullPolicy . }}
David Bainbridge2f9b76f2019-05-15 13:48:11 -070043 args:
44 - "/app/simulated_olt"
David Bainbridgecd30e542019-05-31 20:52:56 +000045 - "-kafka_adapter_host={{ .Values.services.kafka.adapter.service }}"
46 - "-kafka_adapter_port={{ .Values.services.kafka.adapter.port }}"
47 - "-kafka_cluster_host={{ .Values.services.kafka.cluster.service }}"
48 - "-kafka_cluster_port={{ .Values.services.kafka.cluster.port }}"
49 - "-kv_store_host={{ .Values.services.etcd.service }}"
50 - "-kv_store_port={{ .Values.services.etcd.port }}"
David Bainbridge2f9b76f2019-05-15 13:48:11 -070051 - "-core_topic=rwcore"
52 - "-simulator_topic=simulated_olt"
David Bainbridgeeb3e8582019-07-31 20:42:31 +000053 - "-onu_number={{ .Values.onus_per_pon_port }}"
David Bainbridge2f9b76f2019-05-15 13:48:11 -070054---
55apiVersion: apps/v1
56kind: Deployment
57metadata:
58 name: adapter-simulated-onu
59 namespace: {{ .Release.Namespace }}
60spec:
61 replicas: {{ .Values.replicas.adapter_simulated_onu }}
62 selector:
63 matchLabels:
64 app: adapter-simulated-onu
65 template:
66 metadata:
67 labels:
68 app: adapter-simulated-onu
David Bainbridge1f888042019-06-24 18:02:01 +000069 app.kubernetes.io/name: "adapter-simulated-onu"
70 app.kubernetes.io/version: {{ quote .Chart.AppVersion }}
71 app.kubernetes.io/component: "adapter"
72 app.kubernetes.io/part-of: "voltha"
73 app.kubernetes.io/managed-by: {{ quote .Release.Service }}
74 helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
David Bainbridge2f9b76f2019-05-15 13:48:11 -070075 annotations:
76 cni: "calico"
77 spec:
78 containers:
79 - name: adapter-simulated-onu
David Bainbridge5cb5d172019-07-24 02:30:19 +000080 image: {{ tpl .Values.images.adapter_simulated_onu.registry . }}{{ tpl .Values.images.adapter_simulated_onu.repository . }}:{{ tpl ( tpl .Values.images.adapter_simulated_onu.tag . ) . }}
David Bainbridgecd30e542019-05-31 20:52:56 +000081 imagePullPolicy: {{ tpl .Values.images.adapter_simulated_onu.pullPolicy . }}
David Bainbridge2f9b76f2019-05-15 13:48:11 -070082 args:
83 - "/app/simulated_onu"
David Bainbridgecd30e542019-05-31 20:52:56 +000084 - "-kafka_adapter_host={{ .Values.services.kafka.adapter.service }}"
85 - "-kafka_adapter_port={{ .Values.services.kafka.adapter.port }}"
86 - "-kafka_cluster_host={{ .Values.services.kafka.cluster.service }}"
87 - "-kafka_cluster_port={{ .Values.services.kafka.cluster.port }}"
88 - "-kv_store_host={{ .Values.services.etcd.service }}"
89 - "-kv_store_port={{ .Values.services.etcd.port }}"
David Bainbridge2f9b76f2019-05-15 13:48:11 -070090 - "-core_topic=rwcore"
David Bainbridge2f9b76f2019-05-15 13:48:11 -070091 - "-simulator_topic=simulated_onu"