blob: 596607630b6971e918efd582dd93d814870d3519 [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---
30apiVersion: apps/v1beta1
31kind: 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 }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070037 template:
38 metadata:
39 labels:
40 app: voltha
41 spec:
42 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
43 containers:
44 - name: voltha
Zack Williams2749ae52018-09-28 09:43:43 -070045 image: {{ .Values.global.registry }}{{ .Values.images.envoy_for_etcd.repository }}:{{ tpl .Values.images.envoy_for_etcd.tag . }}
46 imagePullPolicy: {{ .Values.images.envoy_for_etcd.pullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070047 env:
48 - name: POD_IP
49 valueFrom:
50 fieldRef:
51 fieldPath: status.podIP
52 - name: NAMESPACE
53 valueFrom:
54 fieldRef:
55 fieldPath: metadata.namespace
56 args:
57 - "/usr/local/bin/envoyd"
58 - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json"
59 - "-envoy-config=/envoy/voltha-grpc-proxy.json"
60 - "-kv=etcd"
Matt Jeanneret7aeb86e2018-11-10 14:12:50 -050061 - "-kv-svc-name={{ .Values.etcdReleaseName }}.default.svc.cluster.local"
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070062 - "-kv-port=2379"
63 ports:
64 - containerPort: 8882
65 name: rest-port
66 - containerPort: 8001
67 name: mystery-port
68 - containerPort: 8443
69 name: mystery2-port
70 - containerPort: 50555
71 name: grpc-port
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070072
73