Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: vcore |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 5 | namespace: voltha |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 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 |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 27 | namespace: voltha |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 28 | spec: |
| 29 | replicas: 3 |
| 30 | template: |
| 31 | metadata: |
| 32 | labels: |
| 33 | app: vcore |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 34 | annotations: |
| 35 | cni: "weave" |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 36 | spec: |
| 37 | containers: |
| 38 | - name: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 39 | image: voltha-voltha |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 40 | env: |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 41 | - name: NAMESPACE |
| 42 | valueFrom: |
| 43 | fieldRef: |
| 44 | fieldPath: metadata.namespace |
| 45 | args: |
| 46 | - "voltha/voltha/main.py" |
| 47 | - "-v" |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 48 | - "--etcd=etcd.$(NAMESPACE).svc.cluster.local:2379" |
| 49 | - "--kafka=kafka.$(NAMESPACE).svc.cluster.local" |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 50 | - "--rest-port=8880" |
| 51 | - "--grpc-port=50556" |
| 52 | - "--interface=eth1" |
| 53 | - "--backend=etcd" |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 54 | - "--pon-subnet=10.38.0.0/12" |
| 55 | - "--ponsim-comm=grpc" |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -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 | |