Andy Bavier | 2259a6b | 2018-07-12 15:27:48 -0700 | [diff] [blame] | 1 | --- |
| 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 | |
| 16 | apiVersion: v1 |
| 17 | kind: Service |
| 18 | metadata: |
| 19 | name: olt |
| 20 | namespace: {{ .Values.global.namespace }} |
| 21 | labels: |
| 22 | name: olt |
| 23 | spec: |
| 24 | ports: |
| 25 | - name: grpc |
| 26 | port: 50060 |
| 27 | targetPort: 50060 |
| 28 | selector: |
| 29 | app: olt |
| 30 | --- |
| 31 | apiVersion: apps/v1beta1 |
| 32 | kind: Deployment |
| 33 | metadata: |
| 34 | name: olt |
| 35 | namespace: {{ .Values.global.namespace }} |
| 36 | spec: |
| 37 | replicas: 1 |
| 38 | template: |
| 39 | metadata: |
| 40 | labels: |
| 41 | app: olt |
| 42 | annotations: |
Jonathan Hart | 26867b2 | 2018-08-14 14:53:28 -0700 | [diff] [blame] | 43 | cni: "calico,pon1" |
Andy Bavier | 2259a6b | 2018-07-12 15:27:48 -0700 | [diff] [blame] | 44 | spec: |
| 45 | containers: |
| 46 | - name: olt |
Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame^] | 47 | image: {{ .Values.global.registry }}{{ .Values.images.olt.repository }}:{{ tpl .Values.images.olt.tag . }} |
| 48 | imagePullPolicy: {{ .Values.images.olt.pullPolicy }} |
Andy Bavier | 2259a6b | 2018-07-12 15:27:48 -0700 | [diff] [blame] | 49 | env: |
| 50 | - name: POD_IP |
| 51 | valueFrom: |
| 52 | fieldRef: |
| 53 | fieldPath: status.podIP |
| 54 | - name: NAMESPACE |
| 55 | valueFrom: |
| 56 | fieldRef: |
| 57 | fieldPath: metadata.namespace |
| 58 | |
| 59 | args: |
| 60 | - "/app/ponsim" |
| 61 | - "-device_type" |
| 62 | - "OLT" |
| 63 | - "-onus" |
| 64 | - "4" |
| 65 | - "-internal_if" |
Jonathan Hart | 26867b2 | 2018-08-14 14:53:28 -0700 | [diff] [blame] | 66 | - "eth1" |
Andy Bavier | 2259a6b | 2018-07-12 15:27:48 -0700 | [diff] [blame] | 67 | - "-external_if" |
Jonathan Hart | 26867b2 | 2018-08-14 14:53:28 -0700 | [diff] [blame] | 68 | - "eth1" |
Andy Bavier | 2259a6b | 2018-07-12 15:27:48 -0700 | [diff] [blame] | 69 | - "-vcore_endpoint" |
| 70 | - "vcore" |
| 71 | - "-promiscuous" |
| 72 | |
| 73 | ports: |
| 74 | - containerPort: 50060 |
| 75 | name: grpc-port |
| 76 | |
| 77 | imagePullPolicy: {{ .Values.images.olt.pullPolicy }} |