Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: vcore |
| 5 | namespace: voltha |
| 6 | labels: |
| 7 | name: vcore |
| 8 | spec: |
| 9 | clusterIP: None |
| 10 | ports: |
| 11 | - name: rest |
| 12 | port: 8880 |
| 13 | targetPort: 8880 |
| 14 | - name: mystery |
| 15 | port: 18880 |
| 16 | targetPort: 18880 |
| 17 | - name: grpc |
| 18 | port: 50556 |
| 19 | targetPort: 50556 |
| 20 | selector: |
| 21 | app: vcore |
| 22 | --- |
| 23 | apiVersion: apps/v1beta1 |
| 24 | kind: Deployment |
| 25 | metadata: |
| 26 | name: vcore |
| 27 | namespace: voltha |
| 28 | spec: |
| 29 | replicas: 1 |
| 30 | template: |
| 31 | metadata: |
| 32 | labels: |
| 33 | app: vcore |
| 34 | annotations: |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 35 | cni: "calico" |
Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 36 | spec: |
| 37 | containers: |
| 38 | - name: voltha |
| 39 | image: voltha-voltha |
| 40 | env: |
| 41 | - name: NAMESPACE |
| 42 | valueFrom: |
| 43 | fieldRef: |
| 44 | fieldPath: metadata.namespace |
| 45 | args: |
| 46 | - "voltha/voltha/main.py" |
| 47 | - "-v" |
| 48 | - "--etcd=etcd.$(NAMESPACE).svc.cluster.local:2379" |
| 49 | - "--kafka=kafka.$(NAMESPACE).svc.cluster.local" |
Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 50 | - "--rest-port=8880" |
| 51 | - "--grpc-port=50556" |
| 52 | - "--interface=eth1" |
| 53 | - "--backend=etcd" |
| 54 | - "--pon-subnet=10.38.0.0/12" |
Richard Jankowski | 8f52afb | 2018-03-29 14:19:11 -0400 | [diff] [blame] | 55 | - "--ponsim-comm=grpc" |
Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 56 | ports: |
| 57 | - containerPort: 8880 |
| 58 | name: rest-port |
| 59 | - containerPort: 18880 |
| 60 | name: mystery-port |
| 61 | - containerPort: 50556 |
| 62 | name: grpc-port |
| 63 | imagePullPolicy: Never |
| 64 | |
| 65 | |