blob: 0b492ffdbdce9eeaf376eada95c26f2036532fe9 [file] [log] [blame]
Andy Bavier2259a6b2018-07-12 15:27:48 -07001---
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16apiVersion: v1
17kind: Service
18metadata:
19 name: olt
20 namespace: {{ .Values.global.namespace }}
21 labels:
22 name: olt
23spec:
24 ports:
25 - name: grpc
26 port: 50060
27 targetPort: 50060
28 selector:
29 app: olt
30---
31apiVersion: apps/v1beta1
32kind: Deployment
33metadata:
34 name: olt
35 namespace: {{ .Values.global.namespace }}
36spec:
37 replicas: 1
38 template:
39 metadata:
40 labels:
41 app: olt
42 annotations:
43 cni: "calico"
44 spec:
45 containers:
46 - name: olt
47 image: {{ .Values.pull_docker_registry }}{{ .Values.images.olt.repository }}:{{ .Values.images.olt.tag }}
48 env:
49 - name: POD_IP
50 valueFrom:
51 fieldRef:
52 fieldPath: status.podIP
53 - name: NAMESPACE
54 valueFrom:
55 fieldRef:
56 fieldPath: metadata.namespace
57
58 args:
59 - "/app/ponsim"
60 - "-device_type"
61 - "OLT"
62 - "-onus"
63 - "4"
64 - "-internal_if"
65 - "eth0"
66 - "-external_if"
67 - "eth0"
68 - "-vcore_endpoint"
69 - "vcore"
70 - "-promiscuous"
71
72 ports:
73 - containerPort: 50060
74 name: grpc-port
75
76 imagePullPolicy: {{ .Values.images.olt.pullPolicy }}