blob: 38e9585950dec13a1289a64ca7c492b3e5883a80 [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:
24 clusterIP: None
25 ports:
26 - name: rest
27 port: 8882
28 targetPort: 8882
29 - name: mystery
30 port: 8001
31 targetPort: 8001
32 - name: mystery2
33 port: 8443
34 targetPort: 8443
35 - name: grpc
36 port: 50555
37 targetPort: 50555
38 selector:
39 app: voltha
40---
41apiVersion: apps/v1beta1
42kind: Deployment
43metadata:
44 name: voltha
45 namespace: {{ .Values.global.namespace }}
46spec:
Gopinath Tagetfff89342018-04-16 12:12:17 -070047 replicas: {{ .Values.replicas.envoy_for_etcd }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070048 template:
49 metadata:
50 labels:
51 app: voltha
52 spec:
53 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
54 containers:
55 - name: voltha
56 image: {{ .Values.pull_docker_registry }}{{ .Values.images.envoy_for_etcd.repository }}:{{ .Values.images.envoy_for_etcd.tag }}
57 env:
58 - name: POD_IP
59 valueFrom:
60 fieldRef:
61 fieldPath: status.podIP
62 - name: NAMESPACE
63 valueFrom:
64 fieldRef:
65 fieldPath: metadata.namespace
66 args:
67 - "/usr/local/bin/envoyd"
68 - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json"
69 - "-envoy-config=/envoy/voltha-grpc-proxy.json"
70 - "-kv=etcd"
71 - "-kv-svc-name=etcd-cluster.default.svc.cluster.local"
72 - "-kv-port=2379"
73 ports:
74 - containerPort: 8882
75 name: rest-port
76 - containerPort: 8001
77 name: mystery-port
78 - containerPort: 8443
79 name: mystery2-port
80 - containerPort: 50555
81 name: grpc-port
82 imagePullPolicy: {{ .Values.image_pull_policy }}
83
84