blob: 7254f936be00099a494928b99e6c12a69872f43a [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# 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 Jankowski54f7a862017-12-20 13:31:10 -050014apiVersion: v1
15kind: Service
16metadata:
17 name: vcore
Richard Jankowskid4454382018-02-08 16:21:43 -050018 namespace: voltha
Richard Jankowski54f7a862017-12-20 13:31:10 -050019 labels:
20 name: vcore
21spec:
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---
36apiVersion: apps/v1beta1
37kind: Deployment
38metadata:
39 name: vcore
Richard Jankowskid4454382018-02-08 16:21:43 -050040 namespace: voltha
Richard Jankowski54f7a862017-12-20 13:31:10 -050041spec:
42 replicas: 3
43 template:
44 metadata:
45 labels:
46 app: vcore
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050047 annotations:
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040048 cni: "calico"
Richard Jankowski54f7a862017-12-20 13:31:10 -050049 spec:
50 containers:
Richard Jankowskic9d89202018-01-25 10:25:10 -050051 - name: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050052 image: voltha-voltha
Richard Jankowskic9d89202018-01-25 10:25:10 -050053 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 Jankowskic9d89202018-01-25 10:25:10 -050071 - "--rest-port=8880"
72 - "--grpc-port=50556"
73 - "--interface=eth1"
74 - "--backend=consul"
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050075 - "--pon-subnet=10.38.0.0/12"
Richard Jankowskid4454382018-02-08 16:21:43 -050076 - "--ponsim-comm=grpc"
Richard Jankowski4ea26632018-05-14 17:45:38 -040077 - "--core-number-extractor=^.*-([0-9]+)_.*$"