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 |
| 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 | |