blob: 206930cedadaf100847b01003c698457a8c81539 [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---
Gopinath Taget7f357cf2018-07-03 12:34:38 -070038apiVersion: apps/v1
39kind: StatefulSet
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070040metadata:
41 name: vcore
42 namespace: {{ .Values.global.namespace }}
43 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
44spec:
Gopinath Taget7f357cf2018-07-03 12:34:38 -070045 serviceName: vcore
Gopinath Tagetfff89342018-04-16 12:12:17 -070046 replicas: {{ .Values.replicas.vcore }}
Gopinath Taget7f357cf2018-07-03 12:34:38 -070047 updateStrategy:
48 type: RollingUpdate
49 selector:
50 matchLabels:
51 app: vcore
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070052 template:
53 metadata:
54 labels:
55 app: vcore
56 annotations:
Gopinath Taget7f357cf2018-07-03 12:34:38 -070057 cni: "calico"
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070058 spec:
Gopinath Taget7f357cf2018-07-03 12:34:38 -070059 terminationGracePeriodSeconds: 0
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070060 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
61 containers:
62 - name: voltha
Matteo Scandolof6c28df2018-05-08 11:44:05 -070063 image: {{ .Values.vcoreImage }}
64 imagePullPolicy: {{ .Values.imagePullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070065 env:
66 - name: NAMESPACE
67 valueFrom:
68 fieldRef:
69 fieldPath: metadata.namespace
70 args:
Gopinath Taget5e49fe32018-06-25 17:02:05 -070071{{ include "voltha-vcore.cmd" . | indent 12 }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070072 ports:
73 - containerPort: 8880
74 name: rest-port
75 - containerPort: 18880
76 name: mystery-port
77 - containerPort: 50556
78 name: grpc-port
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070079
80