-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add xds config tab to inbound tray #3182
Comments
The below JSON is the sort of thing I'm left with when clicking on the inbound card for the Its only picking out the case 'dynamic_active_clusters':
found = value.filter(item => item.cluster.name === 'default_redis_kuma-demo_default_msvc_6379')
break
case 'dynamic_listeners':
found = value.filter(item => item.name === 'inbound:10.42.0.7:6379') // <= this is the networkAddress:port
break
case 'dynamic_endpoint_configs':
found = value.filter(item => item.endpoint_config.cluster_name === 'default_redis_kuma-demo_default_msvc_6379')
break Questions from me:
Lemme know! {
"configs": [
{
"dynamic_active_clusters": [
{
"version_info": "08cd3692-e32e-4849-9a08-2706e61c4747",
"cluster": {
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster",
"name": "default_redis_kuma-demo_default_msvc_6379",
"type": "EDS",
"eds_cluster_config": {
"eds_config": {
"ads": {},
"resource_api_version": "V3"
}
},
"connect_timeout": "5s",
"circuit_breakers": {
"thresholds": [
{
"max_connections": 1024,
"max_pending_requests": 1024,
"max_requests": 1024,
"max_retries": 3
}
]
},
"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": {}
}
}
}
},
"last_updated": "2024-11-14T12:12:36.195Z"
}
]
},
{
"dynamic_endpoint_configs": [
{
"endpoint_config": {
"@type": "type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment",
"cluster_name": "default_redis_kuma-demo_default_msvc_6379",
"endpoints": [
{
"locality": {
"zone": "default"
},
"lb_endpoints": [
{
"endpoint": {
"address": {
"socket_address": {
"address": "10.42.0.7",
"port_value": 6379
}
},
"health_check_config": {}
},
"health_status": "HEALTHY",
"metadata": {
"filter_metadata": {
"envoy.transport_socket_match": {
"k8s.kuma.io/service-port": "6379",
"kubernetes.io/hostname": "k3d-kuma-server-0",
"k8s.kuma.io/service-name": "redis",
"app": "redis",
"kuma.io/protocol": "tcp",
"kuma.io/zone": "default",
"k8s.kuma.io/namespace": "kuma-demo",
"pod-template-hash": "8fcbfc795"
},
"envoy.lb": {
"k8s.kuma.io/namespace": "kuma-demo",
"kuma.io/zone": "default",
"pod-template-hash": "8fcbfc795",
"k8s.kuma.io/service-name": "redis",
"k8s.kuma.io/service-port": "6379",
"app": "redis",
"kubernetes.io/hostname": "k3d-kuma-server-0",
"kuma.io/protocol": "tcp"
}
}
},
"load_balancing_weight": 1
}
],
"load_balancing_weight": 0
}
],
"policy": {
"overprovisioning_factor": 140
}
}
}
]
},
{
"dynamic_listeners": [
{
"name": "inbound:10.42.0.7:6379",
"active_state": {
"version_info": "afa6bad8-f349-4a26-ae62-a91ea6fb759f",
"listener": {
"@type": "type.googleapis.com/envoy.config.listener.v3.Listener",
"name": "inbound:10.42.0.7:6379",
"address": {
"socket_address": {
"address": "10.42.0.7",
"port_value": 6379
}
},
"filter_chains": [
{
"filters": [
{
"name": "envoy.filters.network.tcp_proxy",
"typed_config": {
"@type": "type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy",
"stat_prefix": "localhost_6379",
"cluster": "localhost:6379",
"idle_timeout": "7200s"
}
}
]
}
],
"metadata": {
"filter_metadata": {
"io.kuma.tags": {
"pod-template-hash": "8fcbfc795",
"k8s.kuma.io/service-name": "redis",
"kuma.io/protocol": "tcp",
"k8s.kuma.io/namespace": "kuma-demo",
"kubernetes.io/hostname": "k3d-kuma-server-0",
"kuma.io/service": "redis_kuma-demo_svc_6379",
"kuma.io/zone": "default",
"k8s.kuma.io/service-port": "6379",
"app": "redis"
}
}
},
"traffic_direction": "INBOUND",
"bind_to_port": false,
"enable_reuse_port": false
},
"last_updated": "2024-11-11T12:27:04.672Z"
}
}
]
}
]
} |
Ah! Guessing the above JSON, is for both listeners and clusters right? Guessing for the inbound drawer I just want the {
"configs": [
{
"dynamic_listeners": [
{
"name": "inbound:10.42.0.7:6379",
"active_state": {
"version_info": "afa6bad8-f349-4a26-ae62-a91ea6fb759f",
"listener": {
"@type": "type.googleapis.com/envoy.config.listener.v3.Listener",
"name": "inbound:10.42.0.7:6379",
"address": {
"socket_address": {
"address": "10.42.0.7",
"port_value": 6379
}
},
"filter_chains": [
{
"filters": [
{
"name": "envoy.filters.network.tcp_proxy",
"typed_config": {
"@type": "type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy",
"stat_prefix": "localhost_6379",
"cluster": "localhost:6379",
"idle_timeout": "7200s"
}
}
]
}
],
"metadata": {
"filter_metadata": {
"io.kuma.tags": {
"pod-template-hash": "8fcbfc795",
"k8s.kuma.io/service-name": "redis",
"kuma.io/protocol": "tcp",
"k8s.kuma.io/namespace": "kuma-demo",
"kubernetes.io/hostname": "k3d-kuma-server-0",
"kuma.io/service": "redis_kuma-demo_svc_6379",
"kuma.io/zone": "default",
"k8s.kuma.io/service-port": "6379",
"app": "redis"
}
}
},
"traffic_direction": "INBOUND",
"bind_to_port": false,
"enable_reuse_port": false
},
"last_updated": "2024-11-11T12:27:04.672Z"
}
}
]
}
]
} |
WIP PR with progress on this #3186 |
This view:
Should have a new tab calls "XDS Configuration"
These come from
dynamic_active_clusters
anddynamic_listeners
and have the name for listenerinbound:{{networking.address}}:{{inbound[].port}}
andlocalhost:{{inbound[].port}}
.Should check with backend that it's always
{{networking.address}}
or not.Here's the extracted data for the demo:
listeners:
cluster:
listener:
cluster:
The text was updated successfully, but these errors were encountered: