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 |
| 32 | spec: |
| 33 | containers: |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 34 | - name: voltha |
| 35 | image: "cord/voltha:latest" |
| 36 | imagePullPolicy: Never |
| 37 | ports: |
| 38 | - containerPort: 8880 |
| 39 | name: rest-port |
| 40 | - containerPort: 18880 |
| 41 | name: mystery-port |
| 42 | - containerPort: 50556 |
| 43 | name: grpc-port |
| 44 | env: |
| 45 | - name: NAMESPACE |
| 46 | valueFrom: |
| 47 | fieldRef: |
| 48 | fieldPath: metadata.namespace |
| 49 | args: |
| 50 | - "voltha/voltha/main.py" |
| 51 | - "-v" |
| 52 | - "--consul=consul.$(NAMESPACE).svc.cluster.local:8500" |
| 53 | - "--kafka=kafka.$(NAMESPACE).svc.cluster.local" |
| 54 | - "--fluentd=fluentd.$(NAMESPACE).svc.cluster.local:24224" |
| 55 | - "--rest-port=8880" |
| 56 | - "--grpc-port=50556" |
| 57 | - "--interface=eth1" |
| 58 | - "--backend=consul" |
| 59 | - "--pon-subnet=172.29.19.0/24" |