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 | --- |
Richard Jankowski | 4ea2663 | 2018-05-14 17:45:38 -0400 | [diff] [blame] | 23 | apiVersion: apps/v1 |
| 24 | kind: StatefulSet |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 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: |
Richard Jankowski | 4ea2663 | 2018-05-14 17:45:38 -0400 | [diff] [blame] | 29 | serviceName: vcore |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 30 | replicas: 3 |
Richard Jankowski | 4ea2663 | 2018-05-14 17:45:38 -0400 | [diff] [blame] | 31 | updateStrategy: |
| 32 | type: RollingUpdate |
| 33 | selector: |
| 34 | matchLabels: |
| 35 | app: vcore |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 36 | template: |
| 37 | metadata: |
| 38 | labels: |
| 39 | app: vcore |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 40 | annotations: |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 41 | cni: "calico" |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 42 | spec: |
Richard Jankowski | 4ea2663 | 2018-05-14 17:45:38 -0400 | [diff] [blame] | 43 | terminationGracePeriodSeconds: 0 |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 44 | containers: |
| 45 | - name: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 46 | image: voltha-voltha |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 47 | env: |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 48 | - name: NAMESPACE |
| 49 | valueFrom: |
| 50 | fieldRef: |
| 51 | fieldPath: metadata.namespace |
| 52 | args: |
| 53 | - "voltha/voltha/main.py" |
| 54 | - "-v" |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 55 | - "--etcd=etcd.$(NAMESPACE).svc.cluster.local:2379" |
| 56 | - "--kafka=kafka.$(NAMESPACE).svc.cluster.local" |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 57 | - "--rest-port=8880" |
| 58 | - "--grpc-port=50556" |
| 59 | - "--interface=eth1" |
| 60 | - "--backend=etcd" |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 61 | - "--pon-subnet=10.38.0.0/12" |
| 62 | - "--ponsim-comm=grpc" |
Richard Jankowski | 4ea2663 | 2018-05-14 17:45:38 -0400 | [diff] [blame] | 63 | - "--core-number-extractor=^.*-([0-9]+)_.*$" |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 64 | ports: |
| 65 | - containerPort: 8880 |
| 66 | name: rest-port |
| 67 | - containerPort: 18880 |
| 68 | name: mystery-port |
| 69 | - containerPort: 50556 |
| 70 | name: grpc-port |
| 71 | imagePullPolicy: Never |
| 72 | |
| 73 | |