diff --git a/internal/envoy/config.go b/internal/envoy/config.go index 9ce3d5786a6..8a1a05f6c93 100644 --- a/internal/envoy/config.go +++ b/internal/envoy/config.go @@ -108,7 +108,7 @@ static_resources: max_pending_requests: 100000 max_requests: 60000000 max_retries: 50 - - name: service_stats +{{ if .StatsdEnabled }} - name: service_stats connect_timeout: 0.250s type: LOGICAL_DNS lb_policy: ROUND_ROBIN @@ -117,7 +117,7 @@ static_resources: protocol: TCP address: 127.0.0.1 port_value: {{ if .AdminPort }}{{ .AdminPort }}{{ else }}9001{{ end }} -{{ if .StatsdEnabled }} listeners: + listeners: - address: socket_address: protocol: TCP diff --git a/internal/envoy/config_test.go b/internal/envoy/config_test.go index ff046a4a446..aaa1a83c5be 100644 --- a/internal/envoy/config_test.go +++ b/internal/envoy/config_test.go @@ -63,15 +63,6 @@ static_resources: max_pending_requests: 100000 max_requests: 60000000 max_retries: 50 - - name: service_stats - connect_timeout: 0.250s - type: LOGICAL_DNS - lb_policy: ROUND_ROBIN - hosts: - - socket_address: - protocol: TCP - address: 127.0.0.1 - port_value: 9001 admin: access_log_path: /dev/null address: