Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 1 | --- |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 2 | # 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 | |
| 16 | apiVersion: v1 |
| 17 | kind: Service |
| 18 | metadata: |
| 19 | name: voltha |
| 20 | namespace: {{ .Values.global.namespace }} |
| 21 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 22 | labels: |
| 23 | name: voltha |
| 24 | spec: |
Gopinath Taget | de4eae8 | 2018-04-25 17:15:44 -0700 | [diff] [blame] | 25 | type: {{ .Values.services.envoy.serviceType }} |
| 26 | {{ toYaml .Values.services.envoy.serviceInfo | indent 2 }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 27 | selector: |
| 28 | app: voltha |
| 29 | --- |
| 30 | apiVersion: apps/v1beta1 |
| 31 | kind: Deployment |
| 32 | metadata: |
| 33 | name: voltha |
| 34 | namespace: {{ .Values.global.namespace }} |
| 35 | spec: |
Gopinath Taget | fff8934 | 2018-04-16 12:12:17 -0700 | [diff] [blame] | 36 | replicas: {{ .Values.replicas.envoy_for_etcd }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 37 | template: |
| 38 | metadata: |
| 39 | labels: |
| 40 | app: voltha |
| 41 | spec: |
| 42 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 43 | containers: |
| 44 | - name: voltha |
Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 45 | 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 Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 47 | 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 Jeanneret | 7aeb86e | 2018-11-10 14:12:50 -0500 | [diff] [blame] | 61 | - "-kv-svc-name={{ .Values.etcdReleaseName }}.default.svc.cluster.local" |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 62 | - "-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 Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 72 | |
| 73 | |