Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 14 | apiVersion: v1 |
| 15 | kind: Service |
| 16 | metadata: |
| 17 | name: vcore |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 18 | namespace: voltha |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 19 | labels: |
| 20 | name: vcore |
| 21 | spec: |
| 22 | clusterIP: None |
| 23 | ports: |
| 24 | - name: rest |
| 25 | port: 8880 |
| 26 | targetPort: 8880 |
| 27 | - name: mystery |
| 28 | port: 18880 |
| 29 | targetPort: 18880 |
| 30 | - name: grpc |
| 31 | port: 50556 |
| 32 | targetPort: 50556 |
| 33 | selector: |
| 34 | app: vcore |
| 35 | --- |
| 36 | apiVersion: apps/v1beta1 |
| 37 | kind: Deployment |
| 38 | metadata: |
| 39 | name: vcore |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 40 | namespace: voltha |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 41 | spec: |
| 42 | replicas: 3 |
| 43 | template: |
| 44 | metadata: |
| 45 | labels: |
| 46 | app: vcore |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 47 | annotations: |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 48 | cni: "calico" |
Richard Jankowski | 54f7a86 | 2017-12-20 13:31:10 -0500 | [diff] [blame] | 49 | spec: |
| 50 | containers: |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 51 | - name: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 52 | image: voltha-voltha |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 53 | imagePullPolicy: Never |
| 54 | ports: |
| 55 | - containerPort: 8880 |
| 56 | name: rest-port |
| 57 | - containerPort: 18880 |
| 58 | name: mystery-port |
| 59 | - containerPort: 50556 |
| 60 | name: grpc-port |
| 61 | env: |
| 62 | - name: NAMESPACE |
| 63 | valueFrom: |
| 64 | fieldRef: |
| 65 | fieldPath: metadata.namespace |
| 66 | args: |
| 67 | - "voltha/voltha/main.py" |
| 68 | - "-v" |
| 69 | - "--consul=consul.$(NAMESPACE).svc.cluster.local:8500" |
| 70 | - "--kafka=kafka.$(NAMESPACE).svc.cluster.local" |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 71 | - "--rest-port=8880" |
| 72 | - "--grpc-port=50556" |
| 73 | - "--interface=eth1" |
| 74 | - "--backend=consul" |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 75 | - "--pon-subnet=10.38.0.0/12" |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 76 | - "--ponsim-comm=grpc" |
Richard Jankowski | 4ea2663 | 2018-05-14 17:45:38 -0400 | [diff] [blame] | 77 | - "--core-number-extractor=^.*-([0-9]+)_.*$" |