blob: 52107ce47cb02dab53faee8eb6c51db6e76d5242 [file] [log] [blame]
Zack Williams2749ae52018-09-28 09:43:43 -07001---
Gopinath Tagete2dff4d2018-03-15 17:22:28 -07002# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16apiVersion: v1
17kind: Service
18metadata:
19 name: voltha
20 namespace: {{ .Values.global.namespace }}
21 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
22 labels:
23 name: voltha
24spec:
Gopinath Tagetde4eae82018-04-25 17:15:44 -070025 type: {{ .Values.services.envoy.serviceType }}
26{{ toYaml .Values.services.envoy.serviceInfo | indent 2 }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070027 selector:
28 app: voltha
29---
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080030apiVersion: apps/v1
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070031kind: Deployment
32metadata:
33 name: voltha
34 namespace: {{ .Values.global.namespace }}
35spec:
Gopinath Tagetfff89342018-04-16 12:12:17 -070036 replicas: {{ .Values.replicas.envoy_for_etcd }}
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080037 selector:
38 matchLabels:
39 name: voltha
40 release: {{ .Release.Name }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070041 template:
42 metadata:
43 labels:
44 app: voltha
45 spec:
46 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
47 containers:
48 - name: voltha
Zack Williams2749ae52018-09-28 09:43:43 -070049 image: {{ .Values.global.registry }}{{ .Values.images.envoy_for_etcd.repository }}:{{ tpl .Values.images.envoy_for_etcd.tag . }}
50 imagePullPolicy: {{ .Values.images.envoy_for_etcd.pullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070051 env:
52 - name: POD_IP
53 valueFrom:
54 fieldRef:
55 fieldPath: status.podIP
56 - name: NAMESPACE
57 valueFrom:
58 fieldRef:
59 fieldPath: metadata.namespace
60 args:
61 - "/usr/local/bin/envoyd"
62 - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json"
63 - "-envoy-config=/envoy/voltha-grpc-proxy.json"
64 - "-kv=etcd"
Matt Jeanneret7aeb86e2018-11-10 14:12:50 -050065 - "-kv-svc-name={{ .Values.etcdReleaseName }}.default.svc.cluster.local"
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070066 - "-kv-port=2379"
67 ports:
68 - containerPort: 8882
69 name: rest-port
70 - containerPort: 8001
71 name: mystery-port
72 - containerPort: 8443
73 name: mystery2-port
74 - containerPort: 50555
75 name: grpc-port