wjchan89 opened a new issue, #12341:
URL: https://github.com/apache/apisix/issues/12341

   ### Current Behavior
   
   **Single-Cluster Mode is OK**
   
   discovery:
     kubernetes:
     - id: aaa
       client:
         token: xxx
       service:
         schema: https
         port: '6443'
         host: 192.168.30.99
   
   
   curl http://127.0.0.1:9080/apisix/admin/routes/testaaa \
   -H 'X-API-KEY: xxx' -X PUT -d '
   {
       "methods": ["GET"],
       "uri": "/testaaa",
       "upstream": {
           "discovery_type": "kubernetes",
           "service_name": "aaa/namespace/appa:tcp26160"
       }
   }'
   
   curl http://localhost:9081/testaaa
   {"timestamp":"2025-06-17T09:06:13.478+00:00","status":404,"error":"Not 
Found","message":"","path":"/testaaa"}
   
   
   
   **Multi-Cluster Mode is not working**
   
   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
   
   
   curl http://127.0.0.1:9080/apisix/admin/routes/testaaa \
   -H 'X-API-KEY: xxx' -X PUT -d '
   {
       "methods": ["GET"],
       "uri": "/testaaa",
       "upstream": {
           "discovery_type": "kubernetes",
           "service_name": "aaa/namespace/appa:tcp26160"
       }
   }'
   
   
   curl http://localhost:9081/testaaa -i
   HTTP/1.1 503 Service Temporarily Unavailable
   Date: Tue, 17 Jun 2025 09:10:30 GMT
   Content-Type: text/html; charset=utf-8
   Content-Length: 225
   Connection: keep-alive
   Server: APISIX/3.2.2
   
   <html>
   <head><title>503 Service Temporarily Unavailable</title></head>
   <body>
   <center><h1>503 Service Temporarily Unavailable</h1></center>
   <hr><center>openresty</center>
   <p><em>Powered by APISIX.</em></p></body>
   </html>
   
   
   error log:
   2025/06/17 17:10:30 [error] 103307#103307: *2653 [lua] init.lua:493: 
handle_upstream(): failed to set upstream: no valid upstream node: nil, client: 
::1, server: _, request: "GET /testaaa HTTP/1.1", host: "localhost:9081"
   
   ### Expected Behavior
   
   how to config in Multi-Cluster Mode?
   
   ### Error Logs
   
   2025/06/17 17:10:30 [error] 103307#103307: *2653 [lua] init.lua:493: 
handle_upstream(): failed to set upstream: no valid upstream node: nil, client: 
::1, server: _, request: "GET /testaaa HTTP/1.1", host: "localhost:9081"
   
   ### Steps to Reproduce
   
   1. config config.yaml
   2. restart apisix
   3. config route and sent request
   
   ### Environment
   
   - APISIX version (run `apisix version`):3.2
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to