-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kuma-cp): specifying IPv6 Envoy Admin address breaks readiness/li…
…veness probes (#7909) Put a specified admin address to proxy metadata and use it when generating an admin cluster. Signed-off-by: Ilya Lobkov <[email protected]>
- Loading branch information
1 parent
ccda25e
commit 8481ec2
Showing
20 changed files
with
516 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type: Dataplane | ||
name: web-1 | ||
mesh: default | ||
networking: | ||
address: 192.168.0.1 | ||
inbound: | ||
- port: 1234 | ||
tags: | ||
kuma.io/service: web |
94 changes: 94 additions & 0 deletions
94
pkg/xds/generator/testdata/admin/02.envoy-config.golden.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
resources: | ||
- name: kuma:envoy:admin | ||
resource: | ||
'@type': type.googleapis.com/envoy.config.cluster.v3.Cluster | ||
altStatName: kuma_envoy_admin | ||
connectTimeout: 10s | ||
loadAssignment: | ||
clusterName: kuma:envoy:admin | ||
endpoints: | ||
- lbEndpoints: | ||
- endpoint: | ||
address: | ||
socketAddress: | ||
address: 127.0.0.1 | ||
portValue: 9901 | ||
name: kuma:envoy:admin | ||
type: STATIC | ||
- name: kuma:envoy:admin | ||
resource: | ||
'@type': type.googleapis.com/envoy.config.listener.v3.Listener | ||
address: | ||
socketAddress: | ||
address: 192.168.0.1 | ||
portValue: 9901 | ||
enableReusePort: false | ||
filterChains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
httpFilters: | ||
- name: envoy.filters.http.router | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
routeConfig: | ||
validateClusters: false | ||
virtualHosts: | ||
- domains: | ||
- '*' | ||
name: kuma:envoy:admin | ||
routes: | ||
- match: | ||
prefix: /ready | ||
route: | ||
cluster: kuma:envoy:admin | ||
prefixRewrite: /ready | ||
statPrefix: kuma_envoy_admin | ||
- filterChainMatch: | ||
transportProtocol: tls | ||
filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
httpFilters: | ||
- name: envoy.filters.http.router | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
routeConfig: | ||
validateClusters: false | ||
virtualHosts: | ||
- domains: | ||
- '*' | ||
name: kuma:envoy:admin | ||
routes: | ||
- match: | ||
prefix: / | ||
route: | ||
cluster: kuma:envoy:admin | ||
prefixRewrite: / | ||
statPrefix: kuma_envoy_admin | ||
transportSocket: | ||
name: envoy.transport_sockets.tls | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext | ||
commonTlsContext: | ||
tlsCertificates: | ||
- certificateChain: | ||
inlineBytes: Y2VydFBFTQ== | ||
privateKey: | ||
inlineBytes: a2V5UEVN | ||
validationContext: | ||
matchTypedSubjectAltNames: | ||
- matcher: | ||
exact: kuma-cp | ||
sanType: DNS | ||
trustedCa: | ||
inlineBytes: Y2FQRU0= | ||
requireClientCertificate: true | ||
listenerFilters: | ||
- name: envoy.filters.listener.tls_inspector | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.listener.tls_inspector.v3.TlsInspector | ||
name: kuma:envoy:admin | ||
trafficDirection: INBOUND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type: Dataplane | ||
name: web-1 | ||
mesh: default | ||
networking: | ||
address: 192.168.0.1 | ||
inbound: | ||
- port: 1234 | ||
tags: | ||
kuma.io/service: web |
Oops, something went wrong.