blob: c6607608f041c85a80152370f05f0c4564a2e2c3 [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 Tagetd9ce07c2018-06-05 16:38:17 -070064{{ include "voltha-vcore.cmd" . | indent 12 }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070065 ports:
66 - containerPort: 8880
67 name: rest-port
68 - containerPort: 18880
69 name: mystery-port
70 - containerPort: 50556
71 name: grpc-port
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070072
73