Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # 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. |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 14 | apiVersion: v1 |
| 15 | kind: Service |
| 16 | metadata: |
| 17 | name: onu |
Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 18 | namespace: voltha |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 19 | labels: |
| 20 | name: onu |
| 21 | spec: |
| 22 | ports: |
| 23 | - name: grpc |
| 24 | port: 50061 |
| 25 | targetPort: 50061 |
| 26 | selector: |
| 27 | app: onu |
| 28 | --- |
| 29 | apiVersion: apps/v1beta1 |
| 30 | kind: Deployment |
| 31 | metadata: |
| 32 | name: onu |
Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 33 | namespace: voltha |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 34 | spec: |
Richard Jankowski | 8f52afb | 2018-03-29 14:19:11 -0400 | [diff] [blame] | 35 | replicas: 4 |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 36 | template: |
| 37 | metadata: |
| 38 | labels: |
| 39 | app: onu |
| 40 | annotations: |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 41 | cni: "calico,pon0" |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 42 | spec: |
| 43 | containers: |
| 44 | - name: onu |
| 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 | - "ONU" |
| 60 | - "-parent_addr" |
| 61 | - "olt" |
| 62 | - "-grpc_port" |
| 63 | - "50061" |
| 64 | - "-internal_if" |
| 65 | - "eth0" |
| 66 | - "-external_if" |
| 67 | - "eth1" |
| 68 | - "-promiscuous" |
| 69 | - "-fluentd" |
| 70 | - "fluentd.$(NAMESPACE).svc.cluster.local:24224" |
| 71 | |
| 72 | ports: |
| 73 | - containerPort: 50061 |
| 74 | name: grpc-port |
| 75 | |
| 76 | imagePullPolicy: Never |