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