blob: a2f23c37720fb65019763c224a966c9d78d60bf2 [file] [log] [blame]
Chip Bolingd2d7a4d2019-03-14 14:34:56 -05001# 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# ADTRAN OLT adapter
16
17apiVersion: v1
18kind: Service
19metadata:
20 name: adapter-adtran-onu
21 namespace: voltha
22spec:
23 clusterIP: None
24 selector:
25 app: adapter-adtran-onu
26---
27apiVersion: apps/v1
28kind: Deployment
29metadata:
30 name: adapter-adtran-onu
31 namespace: voltha
32spec:
33 replicas: 1
34 selector:
35 matchLabels:
36 app: adapter-adtran-onu
37 template:
38 metadata:
39 labels:
40 app: adapter-adtran-onu
41 annotations:
42 cni: "calico"
43 spec:
44 containers:
45 - name: adapter-adtran-onu
46 image: voltha-adapter-adtran-onu
47 env:
48 - name: NAMESPACE
49 valueFrom:
50 fieldRef:
51 fieldPath: metadata.namespace
52 args:
53 - "/voltha/python/adapters/adtran_onu/main.py"
54 - "-v"
55 - "--name=adtran_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