blob: 4869682fe11f3508f17aeac7afb51cb55a1d513c [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: voltha
19 namespace: {{ .Values.global.namespace }}
20 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
21 labels:
22 name: voltha
23spec:
Gopinath Tagetde4eae82018-04-25 17:15:44 -070024 type: {{ .Values.services.envoy.serviceType }}
25{{ toYaml .Values.services.envoy.serviceInfo | indent 2 }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070026 selector:
27 app: voltha
28---
29apiVersion: apps/v1beta1
30kind: Deployment
31metadata:
32 name: voltha
33 namespace: {{ .Values.global.namespace }}
34spec:
Gopinath Tagetfff89342018-04-16 12:12:17 -070035 replicas: {{ .Values.replicas.envoy_for_etcd }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070036 template:
37 metadata:
38 labels:
39 app: voltha
40 spec:
41 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
42 containers:
43 - name: voltha
Matteo Scandolof6c28df2018-05-08 11:44:05 -070044 image: {{ .Values.envoyForEtcdImage }}
45 imagePullPolicy: {{ .Values.imagePullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070046 env:
47 - name: POD_IP
48 valueFrom:
49 fieldRef:
50 fieldPath: status.podIP
51 - name: NAMESPACE
52 valueFrom:
53 fieldRef:
54 fieldPath: metadata.namespace
55 args:
56 - "/usr/local/bin/envoyd"
57 - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json"
58 - "-envoy-config=/envoy/voltha-grpc-proxy.json"
59 - "-kv=etcd"
60 - "-kv-svc-name=etcd-cluster.default.svc.cluster.local"
61 - "-kv-port=2379"
62 ports:
63 - containerPort: 8882
64 name: rest-port
65 - containerPort: 8001
66 name: mystery-port
67 - containerPort: 8443
68 name: mystery2-port
69 - containerPort: 50555
70 name: grpc-port
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070071
72