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 | --- |
Matteo Scandolo | 5628d4b | 2021-01-11 11:46:12 -0800 | [diff] [blame] | 30 | apiVersion: apps/v1 |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 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 }} |
Matteo Scandolo | 5628d4b | 2021-01-11 11:46:12 -0800 | [diff] [blame] | 37 | selector: |
| 38 | matchLabels: |
| 39 | name: voltha |
| 40 | release: {{ .Release.Name }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 41 | template: |
| 42 | metadata: |
| 43 | labels: |
| 44 | app: voltha |
| 45 | spec: |
| 46 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 47 | containers: |
| 48 | - name: voltha |
Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 49 | image: {{ .Values.global.registry }}{{ .Values.images.envoy_for_etcd.repository }}:{{ tpl .Values.images.envoy_for_etcd.tag . }} |
| 50 | imagePullPolicy: {{ .Values.images.envoy_for_etcd.pullPolicy }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 51 | env: |
| 52 | - name: POD_IP |
| 53 | valueFrom: |
| 54 | fieldRef: |
| 55 | fieldPath: status.podIP |
| 56 | - name: NAMESPACE |
| 57 | valueFrom: |
| 58 | fieldRef: |
| 59 | fieldPath: metadata.namespace |
| 60 | args: |
| 61 | - "/usr/local/bin/envoyd" |
| 62 | - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json" |
| 63 | - "-envoy-config=/envoy/voltha-grpc-proxy.json" |
| 64 | - "-kv=etcd" |
Matt Jeanneret | 7aeb86e | 2018-11-10 14:12:50 -0500 | [diff] [blame] | 65 | - "-kv-svc-name={{ .Values.etcdReleaseName }}.default.svc.cluster.local" |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 66 | - "-kv-port=2379" |
| 67 | ports: |
| 68 | - containerPort: 8882 |
| 69 | name: rest-port |
| 70 | - containerPort: 8001 |
| 71 | name: mystery-port |
| 72 | - containerPort: 8443 |
| 73 | name: mystery2-port |
| 74 | - containerPort: 50555 |
| 75 | name: grpc-port |