blob: 7f02fe04c4c805c3e11c955b60b3fb71b80b8814 [file] [log] [blame]
Gopinath Tagete2dff4d2018-03-15 17:22:28 -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.
14
15apiVersion: v1
16kind: Service
17metadata:
18 name: vcore
19 namespace: {{ .Values.global.namespace }}
20 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
21 labels:
22 name: vcore
23spec:
24 clusterIP: None
25 ports:
26 - name: rest
27 port: 8880
28 targetPort: 8880
29 - name: mystery
30 port: 18880
31 targetPort: 18880
32 - name: grpc
33 port: 50556
34 targetPort: 50556
35 selector:
36 app: vcore
37---
38apiVersion: apps/v1beta1
39kind: Deployment
40metadata:
41 name: vcore
42 namespace: {{ .Values.global.namespace }}
43 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
44spec:
Gopinath Tagetfff89342018-04-16 12:12:17 -070045 replicas: {{ .Values.replicas.vcore }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070046 template:
47 metadata:
48 labels:
49 app: vcore
50 annotations:
51 cni: "weave"
52 spec:
53 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
54 containers:
55 - name: voltha
Matteo Scandolof6c28df2018-05-08 11:44:05 -070056 image: {{ .Values.vcoreImage }}
57 imagePullPolicy: {{ .Values.imagePullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070058 env:
59 - name: NAMESPACE
60 valueFrom:
61 fieldRef:
62 fieldPath: metadata.namespace
63 args:
Gopinath Taget69802f52018-06-25 15:13:55 +000064 - "voltha/voltha/main.py"
65 - "-v"
66 - "--etcd=etcd-cluster.default.svc.cluster.local:2379"
67 - "--kafka={{ .Release.Name }}-kafka.default.svc.cluster.local"
68 - "--rest-port=8880"
69 - "--grpc-port=50556"
70 - "--interface=eth1"
71 - "--backend=etcd"
72 - "--pon-subnet=10.38.0.0/12"
73 - "--ponsim-comm=grpc"
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070074 ports:
75 - containerPort: 8880
76 name: rest-port
77 - containerPort: 18880
78 name: mystery-port
79 - containerPort: 50556
80 name: grpc-port
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070081
82