Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: olt |
Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 5 | namespace: voltha |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 6 | labels: |
| 7 | name: olt |
| 8 | spec: |
| 9 | ports: |
| 10 | - name: grpc |
| 11 | port: 50060 |
| 12 | targetPort: 50060 |
| 13 | selector: |
| 14 | app: olt |
| 15 | --- |
| 16 | apiVersion: apps/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: olt |
Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 20 | namespace: voltha |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 21 | spec: |
| 22 | replicas: 1 |
| 23 | template: |
| 24 | metadata: |
| 25 | labels: |
| 26 | app: olt |
| 27 | annotations: |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 28 | cni: "calico" |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 29 | spec: |
| 30 | containers: |
| 31 | - name: olt |
| 32 | image: "voltha-ponsim:latest" |
| 33 | env: |
| 34 | - name: POD_IP |
| 35 | valueFrom: |
| 36 | fieldRef: |
| 37 | fieldPath: status.podIP |
| 38 | - name: NAMESPACE |
| 39 | valueFrom: |
| 40 | fieldRef: |
| 41 | fieldPath: metadata.namespace |
| 42 | |
| 43 | args: |
| 44 | - "/app/ponsim" |
| 45 | - "-device_type" |
| 46 | - "OLT" |
| 47 | - "-onus" |
Richard Jankowski | 8f52afb | 2018-03-29 14:19:11 -0400 | [diff] [blame] | 48 | - "4" |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 49 | - "-internal_if" |
| 50 | - "eth0" |
| 51 | - "-external_if" |
| 52 | - "eth0" |
| 53 | - "-vcore_endpoint" |
| 54 | - "vcore" |
| 55 | - "-promiscuous" |
| 56 | - "-fluentd" |
| 57 | - "fluentd.$(NAMESPACE).svc.cluster.local:24224" |
| 58 | |
| 59 | ports: |
| 60 | - containerPort: 50060 |
| 61 | name: grpc-port |
| 62 | |
| 63 | imagePullPolicy: Never |