Refactor Distributed Analytics project structure
[demo.git] / vnfs / DAaaS / deploy / 00-init / gloo / templates / 12-ingress-proxy-configmap.yaml
1 {{- if .Values.ingress.enabled }}
2 # configmap
3 apiVersion: v1
4 kind: ConfigMap
5 metadata:
6   name: ingress-envoy-config
7   namespace: {{ .Release.Namespace }}
8   labels:
9     app: gloo
10     gloo: gateway-proxy
11 data:
12 {{ if (empty .Values.ingressProxy.configMap.data) }}
13   envoy.yaml: |
14     node:
15       cluster: ingress
16       id: "{{ "{{" }}.PodName{{ "}}" }}.{{ "{{" }}.PodNamespace{{ "}}" }}"
17       metadata:
18         # this line must match !
19         role: "{{ "{{" }}.PodNamespace{{ "}}" }}~ingress-proxy"
20     static_resources:
21       clusters:
22       - name: xds_cluster
23         connect_timeout: 5.000s
24         load_assignment:
25           cluster_name: xds_cluster
26           endpoints:
27           - lb_endpoints:
28             - endpoint:
29                 address:
30                   socket_address:
31                     address: gloo
32                     port_value: {{ .Values.gloo.deployment.xdsPort }}
33         http2_protocol_options: {}
34         type: STRICT_DNS
35     dynamic_resources:
36       ads_config:
37         api_type: GRPC
38         grpc_services:
39         - envoy_grpc: {cluster_name: xds_cluster}
40       cds_config:
41         ads: {}
42       lds_config:
43         ads: {}
44     admin:
45       access_log_path: /dev/null
46       address:
47         socket_address:
48           address: 127.0.0.1
49           port_value: 19000
50 {{- else}}{{ toYaml .Values.ingressProxy.configMap.data | indent 2}}{{- end}}
51
52 {{- end }}