blob: 66ebfaab67d8d984b42c4730db682d311db003ba [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
30 annotations:
31 cni: "calico"
32 spec:
33 containers:
34 - name: adapter-simulated-olt
David Bainbridgecd30e542019-05-31 20:52:56 +000035 image: {{ tpl .Values.images.adapter_simulated_olt.registry . }}{{ tpl .Values.images.adapter_simulated_olt.repository . }}:{{ tpl .Values.images.adapter_simulated_olt.tag . }}
36 imagePullPolicy: {{ tpl .Values.images.adapter_simulated_olt.pullPolicy . }}
David Bainbridge2f9b76f2019-05-15 13:48:11 -070037 args:
38 - "/app/simulated_olt"
David Bainbridgecd30e542019-05-31 20:52:56 +000039 - "-kafka_adapter_host={{ .Values.services.kafka.adapter.service }}"
40 - "-kafka_adapter_port={{ .Values.services.kafka.adapter.port }}"
41 - "-kafka_cluster_host={{ .Values.services.kafka.cluster.service }}"
42 - "-kafka_cluster_port={{ .Values.services.kafka.cluster.port }}"
43 - "-kv_store_host={{ .Values.services.etcd.service }}"
44 - "-kv_store_port={{ .Values.services.etcd.port }}"
David Bainbridge2f9b76f2019-05-15 13:48:11 -070045 - "-core_topic=rwcore"
46 - "-simulator_topic=simulated_olt"
David Bainbridgecd30e542019-05-31 20:52:56 +000047 - "-onu_number=4"
David Bainbridge2f9b76f2019-05-15 13:48:11 -070048---
49apiVersion: apps/v1
50kind: Deployment
51metadata:
52 name: adapter-simulated-onu
53 namespace: {{ .Release.Namespace }}
54spec:
55 replicas: {{ .Values.replicas.adapter_simulated_onu }}
56 selector:
57 matchLabels:
58 app: adapter-simulated-onu
59 template:
60 metadata:
61 labels:
62 app: adapter-simulated-onu
63 annotations:
64 cni: "calico"
65 spec:
66 containers:
67 - name: adapter-simulated-onu
David Bainbridgecd30e542019-05-31 20:52:56 +000068 image: {{ tpl .Values.images.adapter_simulated_onu.registry . }}{{ tpl .Values.images.adapter_simulated_onu.repository . }}:{{ tpl .Values.images.adapter_simulated_onu.tag . }}
69 imagePullPolicy: {{ tpl .Values.images.adapter_simulated_onu.pullPolicy . }}
David Bainbridge2f9b76f2019-05-15 13:48:11 -070070 args:
71 - "/app/simulated_onu"
David Bainbridgecd30e542019-05-31 20:52:56 +000072 - "-kafka_adapter_host={{ .Values.services.kafka.adapter.service }}"
73 - "-kafka_adapter_port={{ .Values.services.kafka.adapter.port }}"
74 - "-kafka_cluster_host={{ .Values.services.kafka.cluster.service }}"
75 - "-kafka_cluster_port={{ .Values.services.kafka.cluster.port }}"
76 - "-kv_store_host={{ .Values.services.etcd.service }}"
77 - "-kv_store_port={{ .Values.services.etcd.port }}"
David Bainbridge2f9b76f2019-05-15 13:48:11 -070078 - "-core_topic=rwcore"
David Bainbridge2f9b76f2019-05-15 13:48:11 -070079 - "-simulator_topic=simulated_onu"