Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 1 | # 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 | |
| 15 | apiVersion: v1 |
| 16 | kind: Service |
| 17 | metadata: |
| 18 | name: voltha |
| 19 | namespace: {{ .Values.global.namespace }} |
| 20 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 21 | labels: |
| 22 | name: voltha |
| 23 | spec: |
Gopinath Taget | de4eae8 | 2018-04-25 17:15:44 -0700 | [diff] [blame] | 24 | type: {{ .Values.services.envoy.serviceType }} |
| 25 | {{ toYaml .Values.services.envoy.serviceInfo | indent 2 }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 26 | selector: |
| 27 | app: voltha |
| 28 | --- |
| 29 | apiVersion: apps/v1beta1 |
| 30 | kind: Deployment |
| 31 | metadata: |
| 32 | name: voltha |
| 33 | namespace: {{ .Values.global.namespace }} |
| 34 | spec: |
Gopinath Taget | fff8934 | 2018-04-16 12:12:17 -0700 | [diff] [blame] | 35 | replicas: {{ .Values.replicas.envoy_for_etcd }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 36 | template: |
| 37 | metadata: |
| 38 | labels: |
| 39 | app: voltha |
| 40 | spec: |
| 41 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 42 | containers: |
| 43 | - name: voltha |
Matteo Scandolo | f6c28df | 2018-05-08 11:44:05 -0700 | [diff] [blame] | 44 | image: {{ .Values.envoyForEtcdImage }} |
| 45 | imagePullPolicy: {{ .Values.imagePullPolicy }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 46 | 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 Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 71 | |
| 72 | |