blob: d093b2d8e87dec8fc6a2e4f1fbeb63bf2021e182 [file] [log] [blame]
Richard Jankowski1201bd32018-10-25 11:44:53 -04001# Copyright 2018 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# Ponsim OLT adapter
16
17apiVersion: v1
18kind: Service
19metadata:
20 name: adapter-ponsim-olt
21 namespace: voltha
22spec:
23 clusterIP: None
24 selector:
25 app: adapter-ponsim-olt
26---
27apiVersion: apps/v1
28kind: Deployment
29metadata:
30 name: adapter-ponsim-olt
31 namespace: voltha
32spec:
33 replicas: 1
34 selector:
35 matchLabels:
36 app: adapter-ponsim-olt
37 template:
38 metadata:
39 labels:
40 app: adapter-ponsim-olt
41 annotations:
42 cni: "calico"
43 spec:
44 containers:
45 - name: adapter-ponsim-olt
46 image: voltha-adapter-ponsim-olt
47 env:
48 - name: NAMESPACE
49 valueFrom:
50 fieldRef:
51 fieldPath: metadata.namespace
52 args:
Richard Jankowskiab8e2532018-11-30 16:17:00 -050053 - "/voltha/python/adapters/ponsim_olt/main.py"
Richard Jankowski1201bd32018-10-25 11:44:53 -040054 - "-v"
55 - "--name=ponsim_olt"
56 - "--kafka_adapter=kafka.$(NAMESPACE).svc.cluster.local:9092"
57 - "--kafka_cluster=kafka.$(NAMESPACE).svc.cluster.local:9092"
58 - "--core_topic=rwcore"
59 imagePullPolicy: IfNotPresent
60---
61
62# Ponsim ONU adapter
63
64apiVersion: v1
65kind: Service
66metadata:
67 name: adapter-ponsim-onu
68 namespace: voltha
69spec:
70 clusterIP: None
71 selector:
72 app: adapter-ponsim-onu
73---
74apiVersion: apps/v1
75kind: Deployment
76metadata:
77 name: adapter-ponsim-onu
78 namespace: voltha
79spec:
80 replicas: 1
81 selector:
82 matchLabels:
83 app: adapter-ponsim-onu
84 template:
85 metadata:
86 labels:
87 app: adapter-ponsim-onu
88 annotations:
89 cni: "calico"
90 spec:
91 containers:
92 - name: adapter-ponsim-onu
93 image: voltha-adapter-ponsim-onu
94 env:
95 - name: NAMESPACE
96 valueFrom:
97 fieldRef:
98 fieldPath: metadata.namespace
99 args:
Richard Jankowskiab8e2532018-11-30 16:17:00 -0500100 - "/voltha/python/adapters/ponsim_onu/main.py"
Richard Jankowski1201bd32018-10-25 11:44:53 -0400101 - "-v"
102 - "--name=ponsim_onu"
103 - "--kafka_adapter=kafka.$(NAMESPACE).svc.cluster.local:9092"
104 - "--kafka_cluster=kafka.$(NAMESPACE).svc.cluster.local:9092"
105 - "--core_topic=rwcore"
106 imagePullPolicy: IfNotPresent