blob: 2a9b79249c0b248150ab60ea5ce333d82ac0db30 [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 Jankowskid7921b72018-02-20 16:55:12 -050014apiVersion: v1
15kind: Service
16metadata:
17 name: vcore
18 namespace: voltha
19 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
40 namespace: voltha
41spec:
42 replicas: 1
43 template:
44 metadata:
45 labels:
46 app: vcore
47 annotations:
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040048 cni: "calico"
Richard Jankowskid7921b72018-02-20 16:55:12 -050049 spec:
50 containers:
51 - name: voltha
52 image: voltha-voltha
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 Jankowskid7921b72018-02-20 16:55:12 -050071 - "--rest-port=8880"
72 - "--grpc-port=50556"
73 - "--interface=eth1"
74 - "--backend=consul"
75 - "--pon-subnet=10.38.0.0/12"
Richard Jankowski8f52afb2018-03-29 14:19:11 -040076 - "--ponsim-comm=grpc"