blob: 92f6ec73fc03df015e2cfa6984d2bd46b6873cc7 [file] [log] [blame]
Richard Jankowski00a04662019-02-05 12:18:53 -05001# 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
15apiVersion: v1
16kind: Service
17metadata:
18 name: olt
19 namespace: voltha
20 labels:
21 name: olt
22spec:
23 ports:
24 - name: grpc
25 port: 50060
26 targetPort: 50060
27 selector:
28 app: olt
29---
30apiVersion: apps/v1beta1
31kind: Deployment
32metadata:
33 name: olt
34 namespace: voltha
35spec:
36 replicas: 1
37 template:
38 metadata:
39 labels:
40 app: olt
41 annotations:
42 cni: "calico"
43 spec:
44 containers:
45 - name: olt
46 image: "voltha-ponsim"
47 env:
48 - name: POD_IP
49 valueFrom:
50 fieldRef:
51 fieldPath: status.podIP
52 - name: NAMESPACE
53 valueFrom:
54 fieldRef:
55 fieldPath: metadata.namespace
56
57 args:
58 - "/app/ponsim"
59 - "-device_type"
60 - "OLT"
61 - "-onus"
62 - "3"
63 - "-internal_if"
64 - "eth0"
65 - "-external_if"
66 - "eth0"
67 - "-vcore_endpoint"
68 - "vcore"
69 - "-promiscuous"
70
71 ports:
72 - containerPort: 50060
73 name: grpc-port
74
75 imagePullPolicy: IfNotPresent