# https://www.envoyproxy.io/docs/envoy/v1.17.1/configuration/best_practices/edge#configuring-envoy-as-an-edge-proxy # https://github.com/istio/istio/issues/24715 {{- if or (index .Values "istio-ingress" "enabled") (index .Values "istio-private-ingress" "enabled") }} apiVersion: v1 kind: ConfigMap metadata: name: istio-gateway-bootstrap-config namespace: {{ .Release.Namespace }} data: custom_bootstrap.json: | { "overload_manager": { "actions": [ { "name": "envoy.overload_actions.shrink_heap", "triggers": [ { "name": "envoy.resource_monitors.fixed_heap", "threshold": { "value": 0.9 } } ] }, { "name": "envoy.overload_actions.stop_accepting_requests", "triggers": [ { "name": "envoy.resource_monitors.fixed_heap", "threshold": { "value": 0.99 } } ] } ], "refresh_interval": "0.25s", "resource_monitors": [ { "name": "envoy.resource_monitors.fixed_heap", "typed_config": { "@type": "type.googleapis.com/envoy.config.resource_monitor.fixed_heap.v2alpha.FixedHeapConfig", "max_heap_size_bytes": 536870912 } } ] }, "layeredRuntime": { "layers": [ { "name": "static_layer_0", "staticLayer": { "overload.global_downstream_max_connections": 50000 } } ] } } {{- end }}