diff --git a/configs/config.json b/configs/config.json index 8fa353a654..927ada571c 100644 --- a/configs/config.json +++ b/configs/config.json @@ -135,5 +135,48 @@ } } ] + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] } } diff --git a/configs/config_apollo.json b/configs/config_apollo.json index 89e03a61f2..13bf61c6cf 100644 --- a/configs/config_apollo.json +++ b/configs/config_apollo.json @@ -61,5 +61,48 @@ } ] } - ] + ], + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] + } } diff --git a/configs/config_consul.json b/configs/config_consul.json index 3d62f7f794..7c9cb64d57 100644 --- a/configs/config_consul.json +++ b/configs/config_consul.json @@ -73,5 +73,48 @@ } ] } - ] + ], + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] + } } diff --git a/configs/config_file.json b/configs/config_file.json index 6f1cbb9e2e..3c0a70843f 100644 --- a/configs/config_file.json +++ b/configs/config_file.json @@ -49,5 +49,48 @@ "pprof": { "debug": true, "port_value": 34902 + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] } } \ No newline at end of file diff --git a/configs/config_file_qiniu_oss.json b/configs/config_file_qiniu_oss.json index 0cd2439cdc..ea478b1671 100644 --- a/configs/config_file_qiniu_oss.json +++ b/configs/config_file_qiniu_oss.json @@ -49,5 +49,48 @@ "pprof": { "debug": true, "port_value": 34902 + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] } } diff --git a/configs/config_file_tencentcloud_oss.json b/configs/config_file_tencentcloud_oss.json index c825255697..1f592ae44d 100644 --- a/configs/config_file_tencentcloud_oss.json +++ b/configs/config_file_tencentcloud_oss.json @@ -48,5 +48,48 @@ "pprof": { "debug": true, "port_value": 34902 + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] } } \ No newline at end of file diff --git a/configs/config_integrate_test.json b/configs/config_integrate_test.json index 4e61790d83..86ad2b59c5 100644 --- a/configs/config_integrate_test.json +++ b/configs/config_integrate_test.json @@ -168,6 +168,49 @@ } ] } - ] + ], + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] + } } \ No newline at end of file diff --git a/configs/config_mongo.json b/configs/config_mongo.json index 366f749bdf..2819ed9177 100644 --- a/configs/config_mongo.json +++ b/configs/config_mongo.json @@ -90,5 +90,48 @@ } ] } - ] + ], + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] + } } diff --git a/configs/config_oss.json b/configs/config_oss.json index 702b32ba4f..60ee44b820 100644 --- a/configs/config_oss.json +++ b/configs/config_oss.json @@ -39,5 +39,48 @@ } ] } - ] + ], + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] + } } diff --git a/configs/config_redis.json b/configs/config_redis.json index 7dc6736920..cfbdd1630f 100644 --- a/configs/config_redis.json +++ b/configs/config_redis.json @@ -100,5 +100,48 @@ } ] } - ] + ], + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] + } } diff --git a/configs/config_ref_example.json b/configs/config_ref_example.json index 824e685397..0e41e20b2e 100644 --- a/configs/config_ref_example.json +++ b/configs/config_ref_example.json @@ -114,5 +114,48 @@ } ] } - ] + ], + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] + } } diff --git a/configs/config_snowflake.json b/configs/config_snowflake.json index 0791f40252..7bfd1716e5 100644 --- a/configs/config_snowflake.json +++ b/configs/config_snowflake.json @@ -80,6 +80,49 @@ } ] } - ] + ], + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] + } } \ No newline at end of file diff --git a/configs/config_standalone.json b/configs/config_standalone.json index 2ec7ca4a66..4453f40876 100644 --- a/configs/config_standalone.json +++ b/configs/config_standalone.json @@ -141,5 +141,48 @@ } } ] + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] } } diff --git a/configs/config_trace_jaeger.json b/configs/config_trace_jaeger.json index 5ee7b2471d..1ee0e4d329 100644 --- a/configs/config_trace_jaeger.json +++ b/configs/config_trace_jaeger.json @@ -77,6 +77,49 @@ } } ] + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] } } diff --git a/configs/config_trace_skywalking.json b/configs/config_trace_skywalking.json index 10b4873bab..766a0a5f2b 100644 --- a/configs/config_trace_skywalking.json +++ b/configs/config_trace_skywalking.json @@ -78,6 +78,49 @@ } } ] + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] } } diff --git a/configs/config_trace_zipkin.json b/configs/config_trace_zipkin.json index bbb2a467de..2955c1dfc1 100644 --- a/configs/config_trace_zipkin.json +++ b/configs/config_trace_zipkin.json @@ -78,6 +78,49 @@ } } ] + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] } } diff --git a/configs/config_zookeeper.json b/configs/config_zookeeper.json index 3a3c2e7eed..cab3177d91 100644 --- a/configs/config_zookeeper.json +++ b/configs/config_zookeeper.json @@ -86,5 +86,48 @@ } ] } - ] + ], + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] + } } diff --git a/configs/runtime_config.json b/configs/runtime_config.json index bc47750e2b..625dbd706c 100644 --- a/configs/runtime_config.json +++ b/configs/runtime_config.json @@ -104,5 +104,48 @@ } } ] + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] } } diff --git a/demo/faas/config.json b/demo/faas/config.json index 07fe3024e3..724b1c158a 100644 --- a/demo/faas/config.json +++ b/demo/faas/config.json @@ -144,5 +144,48 @@ ] } ] + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [{ + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + }] + } + }, + "static_resources": { + "clusters": [{ + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [{ + "lb_endpoints": [{ + "endpoint": { + "address": { + "socket_address": {"address": "127.0.0.1", "port_value": 30681} + } + } + } + ] + }] + } + }] } } \ No newline at end of file diff --git a/demo/rpc/dubbo_json_rpc/example.json b/demo/rpc/dubbo_json_rpc/example.json index 17d12ddd89..54981dec21 100644 --- a/demo/rpc/dubbo_json_rpc/example.json +++ b/demo/rpc/dubbo_json_rpc/example.json @@ -1,55 +1,68 @@ { - "servers":[ + "servers": [ { - "default_log_path":"./debug.log", + "default_log_path": "./debug.log", "default_log_level": "DEBUG", "routers": [ { - "router_config_name":"http_router", - "virtual_hosts":[{ - "name":"http_host", - "domains": ["*"], - "routers": [ - { - "match":{ - "regex": ".*" - }, - "route":{"cluster_name":"http_server"} - } - ] - }] - }], - "listeners":[ + "router_config_name": "http_router", + "virtual_hosts": [ + { + "name": "http_host", + "domains": [ + "*" + ], + "routers": [ + { + "match": { + "regex": ".*" + }, + "route": { + "cluster_name": "http_server" + } + } + ] + } + ] + } + ], + "listeners": [ { - "name":"grpc", + "name": "grpc", "address": "127.0.0.1:34904", "bind_port": true, - "filter_chains": [{ - "filters": [ - { - "type": "grpc", - "config": { - "server_name":"runtime", - "grpc_config": { - "rpcs": { - "mosn": { - "config": { - "before_invoke": [{ - "name": "dubbo_json_rpc" - }], - "channel": [{ - "size": 1, - "protocol": "http", - "listener": "egress_runtime_http" - }] + "filter_chains": [ + { + "filters": [ + { + "type": "grpc", + "config": { + "server_name": "runtime", + "grpc_config": { + "rpcs": { + "mosn": { + "config": { + "before_invoke": [ + { + "name": "dubbo_json_rpc" + } + ], + "channel": [ + { + "size": 1, + "protocol": "http", + "listener": "egress_runtime_http" + } + ] + } } } } } } - } - ] - }] + ] + } + ] }, { "name": "egress_runtime_http", @@ -92,5 +105,58 @@ ] } ] + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [ + { + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + } + ] + } + }, + "static_resources": { + "clusters": [ + { + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [ + { + "lb_endpoints": [ + { + "endpoint": { + "address": { + "socket_address": { + "address": "127.0.0.1", + "port_value": 30681 + } + } + } + } + ] + } + ] + } + } + ] } } diff --git a/demo/rpc/http/example.json b/demo/rpc/http/example.json index defe3b0dfa..6bd3c52729 100644 --- a/demo/rpc/http/example.json +++ b/demo/rpc/http/example.json @@ -105,5 +105,58 @@ ] } ] + }, + "dynamic_resources": { + "lds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "cds_config": { + "ads": {}, + "initial_fetch_timeout": "0s", + "resource_api_version": "V3" + }, + "ads_config": { + "api_type": "GRPC", + "set_node_on_first_message_only": true, + "transport_api_version": "V3", + "grpc_services": [ + { + "envoy_grpc": { + "cluster_name": "xds-grpc" + } + } + ] + } + }, + "static_resources": { + "clusters": [ + { + "name": "xds-grpc", + "type": "STATIC", + "connect_timeout": "1s", + "lb_policy": "ROUND_ROBIN", + "load_assignment": { + "cluster_name": "xds-grpc", + "endpoints": [ + { + "lb_endpoints": [ + { + "endpoint": { + "address": { + "socket_address": { + "address": "127.0.0.1", + "port_value": 30681 + } + } + } + } + ] + } + ] + } + } + ] } }