wjchan89 commented on issue #12341: URL: https://github.com/apache/apisix/issues/12341#issuecomment-2982455879
> Hi [@wjchan89](https://github.com/wjchan89), are there any other error logs in apisix? We need to make sure that apisix can access the cluster normally. You can also check the service discovery data in apisix with the control api https://apisix.apache.org/docs/apisix/control-api/#get-v1discoveryservicedump apisix version 3.2,there is no such control api for discovery. when I set one cluster like this, ```bash discovery: kubernetes: - id: aaa client: token: xxx service: schema: https port: '6443' host: 192.168.30.99 ``` the routes: ```bash curl http: //127.0.0.1:9090/v1/routes [ { "has_domain": false, "orig_modifiedIndex": 185, "createdIndex": 68, "modifiedIndex": 185, "value": { "create_time": 1750146490, "methods": [ "GET" ], "uri": "/flowRuleA", "update_time": 1750214026, "id": "testaaa", "upstream": { "original_nodes": [ { "port": 26160, "weight": 50, "host": "192.168.30.124", "metadata": { "pod-template-hash": "6f5c7b5c47", "version": "v1", "app": "appa" } } ], "hash_on": "vars", "service_name": "aaa/namespace/appa:tcp26160", "type": "roundrobin", "pass_host": "pass", "nodes": [ { "metadata": { "pod-template-hash": "6f5c7b5c47", "version": "v1", "app": "appa" }, "port": 26160, "upstream_host": "192.168.30.124:26160", "priority": 0, "host": "192.168.30.124", "weight": 50 } ], "discovery_type": "kubernetes", "scheme": "http", "nodes_ref": [ { "upstream_host": "192.168.30.124:26160", "priority": 0, "port": 26160, "weight": 50, "host": "192.168.30.124", "metadata": { "pod-template-hash": "6f5c7b5c47", "version": "v1", "app": "appa" } } ] }, "priority": 0, "status": 1 }, "clean_handlers": {}, "key": "/apisix/routes/testaaa" }, { "has_domain": false, "orig_modifiedIndex": 142, "createdIndex": 119, "modifiedIndex": 142, "value": { "update_time": 1750150991, "create_time": 1750148686, "priority": 0, "id": "testbbb", "uri": "/testbbb", "upstream": { "pass_host": "pass", "service_name": "bbb/namespace/appa:tcp8080", "hash_on": "vars", "discovery_type": "kubernetes", "scheme": "http", "type": "roundrobin" }, "methods": [ "GET" ], "status": 1 }, "clean_handlers": {}, "key": "/apisix/routes/testbbb" } ] ``` when I set two clusters like this, ```bash discovery: kubernetes: - id: aaa client: token: xxx service: schema: https port: '6443' host: 192.168.30.99 - id: bbb client: token: xxx service: schema: https port: '6443' host: 192.168.30.89 ``` the routes: ```bash curl http: //127.0.0.1:9090/v1/routes [ { "createdIndex": 68, "clean_handlers": {}, "modifiedIndex": 120, "key": "/apisix/routes/testaaa", "has_domain": false, "value": { "methods": [ "GET" ], "update_time": 1750148965, "create_time": 1750146490, "priority": 0, "uri": "/flowRuleA", "status": 1, "id": "testaaa", "upstream": { "pass_host": "pass", "service_name": "aaa/namespace/appa:tcp26160", "scheme": "http", "type": "roundrobin", "hash_on": "vars", "discovery_type": "kubernetes" } }, "orig_modifiedIndex": 120 }, { "createdIndex": 119, "clean_handlers": {}, "modifiedIndex": 142, "key": "/apisix/routes/testbbb", "has_domain": false, "value": { "upstream": { "service_name": "bbb/namespace/appa:tcp8080", "scheme": "http", "pass_host": "pass", "type": "roundrobin", "hash_on": "vars", "discovery_type": "kubernetes" }, "update_time": 1750150991, "create_time": 1750148686, "methods": [ "GET" ], "uri": "/testbbb", "priority": 0, "id": "testbbb", "status": 1 }, "orig_modifiedIndex": 142 } ] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org