blob: 8ceb6f30be5d175c775159a6965eed8aafd03deb [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:
45 replicas: 3
46 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
56 image: {{ .Values.pull_docker_registry }}{{ .Values.images.vcore.repository }}:{{ .Values.images.vcore.tag }}
57 env:
58 - name: NAMESPACE
59 valueFrom:
60 fieldRef:
61 fieldPath: metadata.namespace
62 args:
63 - "voltha/voltha/main.py"
64 - "-v"
65 - "--etcd=etcd-cluster.default.svc.cluster.local:2379"
66 - "--kafka={{ .Release.Name }}-kafka.default.svc.cluster.local"
67 - "--rest-port=8880"
68 - "--grpc-port=50556"
69 - "--interface=eth1"
70 - "--backend=etcd"
71 - "--pon-subnet=10.38.0.0/12"
72 - "--ponsim-comm=grpc"
73 ports:
74 - containerPort: 8880
75 name: rest-port
76 - containerPort: 18880
77 name: mystery-port
78 - containerPort: 50556
79 name: grpc-port
80 imagePullPolicy: {{ .Values.image_pull_policy }}
81
82