blob: 6a1fdaf47653950132cf045c2ba3931245a800bc [file] [log] [blame]
Dinesh Belwalkar0c328db2018-12-02 21:11:49 -08001# 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# Opne OLT adapter
16
17apiVersion: v1
18kind: Service
19metadata:
20 name: adapter-openolt
21 namespace: voltha
22spec:
23 clusterIP: None
24 selector:
25 app: adapter-openolt
26---
27apiVersion: apps/v1
28kind: Deployment
29metadata:
30 name: adapter-openolt
31 namespace: voltha
32spec:
33 replicas: 1
34 selector:
35 matchLabels:
36 app: adapter-openolt
37 template:
38 metadata:
39 labels:
40 app: adapter-openolt
41 annotations:
42 cni: "calico"
43 spec:
44 containers:
45 - name: adapter-openolt
46 image: voltha-adapter-openolt
47 env:
48 - name: NAMESPACE
49 valueFrom:
50 fieldRef:
51 fieldPath: metadata.namespace
52 args:
53 - "/adapters/adapters/openolt/main.py"
54 - "-v"
55 - "--name=openolt"
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#add brcm_openomci_onu adapter here if needed