blob: ec1b0697fdffe4e38b5ba761b40384c4ecabf006 [file] [log] [blame]
Stephane Barbarie439dc392019-01-21 13:55:39 -05001# Copyright 2019 the original author or authors.
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# simulated OLT adapter
16
17apiVersion: v1
18kind: Service
19metadata:
20 name: adapter-simulated-olt
21 namespace: voltha
22spec:
23 clusterIP: None
24 selector:
25 app: adapter-simulated-olt
26---
27apiVersion: apps/v1
28kind: Deployment
29metadata:
30 name: adapter-simulated-olt
31 namespace: voltha
32spec:
33 replicas: 1
34 selector:
35 matchLabels:
36 app: adapter-simulated-olt
37 template:
38 metadata:
39 labels:
40 app: adapter-simulated-olt
41 annotations:
42 cni: "calico"
43 spec:
44 containers:
45 - name: adapter-simulated-olt
46 image: voltha-adapter-simulated-olt
47 env:
48 - name: NAMESPACE
49 valueFrom:
50 fieldRef:
51 fieldPath: metadata.namespace
52 args:
53 - "/app/simulated_olt"
54 - "--kafka_adapter_host=kafka.$(NAMESPACE).svc.cluster.local"
55 - "--kafka_adapter_port=9092"
56 - "--kafka_cluster_host=kafka.$(NAMESPACE).svc.cluster.local"
57 - "--kafka_cluster_port=9092"
58 - "--core_topic=rwcore"
59 - "--simulator_topic=simulated_olt"
60 - "--onu_number=1"
Richard Jankowski00a04662019-02-05 12:18:53 -050061 - "--kv_store_host=etcd.$(NAMESPACE).svc.cluster.local"
62 - "--kv_store_port=2379"
Stephane Barbarie439dc392019-01-21 13:55:39 -050063 imagePullPolicy: IfNotPresent
64---
65
66# simulated ONU adapter
67
68apiVersion: v1
69kind: Service
70metadata:
71 name: adapter-simulated-onu
72 namespace: voltha
73spec:
74 clusterIP: None
75 selector:
76 app: adapter-simulated-onu
77---
78apiVersion: apps/v1
79kind: Deployment
80metadata:
81 name: adapter-simulated-onu
82 namespace: voltha
83spec:
84 replicas: 1
85 selector:
86 matchLabels:
87 app: adapter-simulated-onu
88 template:
89 metadata:
90 labels:
91 app: adapter-simulated-onu
92 annotations:
93 cni: "calico"
94 spec:
95 containers:
96 - name: adapter-simulated-onu
97 image: voltha-adapter-simulated-onu
98 env:
99 - name: NAMESPACE
100 valueFrom:
101 fieldRef:
102 fieldPath: metadata.namespace
103 args:
104 - "/app/simulated_onu"
105 - "--kafka_adapter_host=kafka.$(NAMESPACE).svc.cluster.local"
106 - "--kafka_adapter_port=9092"
107 - "--kafka_cluster_host=kafka.$(NAMESPACE).svc.cluster.local"
108 - "--kafka_cluster_port=9092"
109 - "--core_topic=rwcore"
110 - "--simulator_topic=simulated_onu"
Richard Jankowski00a04662019-02-05 12:18:53 -0500111 - "--kv_store_host=etcd.$(NAMESPACE).svc.cluster.local"
112 - "--kv_store_port=2379"
Stephane Barbarie439dc392019-01-21 13:55:39 -0500113 imagePullPolicy: IfNotPresent