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