blob: e44466bf7f57de5d29f7d1c469f0e2ed49560ef5 [file] [log] [blame]
David Bainbridge2f9b76f2019-05-15 13:48:11 -07001# 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
15---
16apiVersion: v1
17kind: Service
18metadata:
19 name: onu
20 labels:
21 name: onu
22spec:
23 ports:
24 - name: grpc
25 port: 50061
26 targetPort: 50061
27 selector:
28 app: onu
29
30---
31apiVersion: apps/v1beta1
32kind: Deployment
33metadata:
34 name: onu
35spec:
36 replicas: {{ .Values.replicas.onu }}
37 template:
38 metadata:
39 labels:
40 app: onu
41 annotations:
42 cni: "calico,pon0"
43 spec:
44 containers:
45 - name: onu
46 image: {{ .Values.registry }}{{ .Values.images.ponsim.repository }}:{{ tpl .Values.images.ponsim.tag . }}
47 imagePullPolicy: {{ .Values.images.ponsim.pullPolicy }}
48 env:
49 - name: POD_IP
50 valueFrom:
51 fieldRef:
52 fieldPath: status.podIP
53 - name: NAMESPACE
54 value: {{ quote .Release.Namespace }}
55
56 args:
57 - "/app/ponsim"
58 - "-device_type"
59 - "ONU"
60 - "-parent_addr"
61 - "olt"
62 - "-grpc_port"
63 - "50061"
64 - "-internal_if"
65 - "eth0"
66 - "-external_if"
67 - "eth1"
68 - "-promiscuous"
69
70 ports:
71 - containerPort: 50061
72 name: grpc-port