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