blob: 59bacdb930c2aca06fbe4722425f6760ecf452c9 [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
44 image: {{ .Values.pull_docker_registry }}{{ .Values.images.envoy_for_etcd.repository }}:{{ .Values.images.envoy_for_etcd.tag }}
45 env:
46 - name: POD_IP
47 valueFrom:
48 fieldRef:
49 fieldPath: status.podIP
50 - name: NAMESPACE
51 valueFrom:
52 fieldRef:
53 fieldPath: metadata.namespace
54 args:
55 - "/usr/local/bin/envoyd"
56 - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json"
57 - "-envoy-config=/envoy/voltha-grpc-proxy.json"
58 - "-kv=etcd"
59 - "-kv-svc-name=etcd-cluster.default.svc.cluster.local"
60 - "-kv-port=2379"
61 ports:
62 - containerPort: 8882
63 name: rest-port
64 - containerPort: 8001
65 name: mystery-port
66 - containerPort: 8443
67 name: mystery2-port
68 - containerPort: 50555
69 name: grpc-port
70 imagePullPolicy: {{ .Values.image_pull_policy }}
71
72