2023-03-28 22:48:58 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 22:48:58 +00:00
|
|
|
|
2021-08-24 12:48:30 +00:00
|
|
|
services {
|
|
|
|
name = "ingress-gateway"
|
|
|
|
kind = "ingress-gateway"
|
|
|
|
|
|
|
|
proxy {
|
|
|
|
config {
|
2021-08-27 20:28:01 +00:00
|
|
|
# Note that http2_protocol_options is a deprecated field and Envoy 1.17
|
|
|
|
# and up would prefer:
|
|
|
|
# typed_extension_protocol_options:
|
|
|
|
# envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
|
|
|
|
# "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
|
|
|
|
# explicit_http_config:
|
|
|
|
# http2_protocol_options:
|
|
|
|
#
|
|
|
|
# But that breaks 1.15 and 1.16. For now use this which is supported by
|
2021-09-23 09:17:03 +00:00
|
|
|
# all our supported versions to avoid needing to setup different
|
2021-08-27 20:28:01 +00:00
|
|
|
# bootstrap based on the envoy version.
|
2021-08-24 12:48:30 +00:00
|
|
|
envoy_extra_static_clusters_json = <<EOF
|
|
|
|
{
|
|
|
|
"name": "sds-cluster",
|
|
|
|
"connect_timeout": "5s",
|
2021-08-27 20:28:01 +00:00
|
|
|
"http2_protocol_options": {},
|
2021-08-24 12:48:30 +00:00
|
|
|
"load_assignment": {
|
|
|
|
"cluster_name": "sds-cluster",
|
|
|
|
"endpoints": [
|
|
|
|
{
|
|
|
|
"lb_endpoints": [
|
|
|
|
{
|
|
|
|
"endpoint": {
|
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 1234
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|