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

   ### Description
   
   i set upstream discovery kubernetes type , but it not work.when i access a 
path(i had set route), i got a error code like this:503 Service Temporarily 
Unavailable.
   and the error log like this:
   `[error] 17748#17748: *849588 [lua] init.lua:540: http_access_phase(): 
failed to set upstream: no valid upstream node: nil, client: 192.168.92.100, 
server: _, request: "GET /apisix/index.html HTTP/1.1", host: 
"192.168.92.101:9080"
   `
   i change the source code to confirm if the ip had added and i got the log 
like this:
   `on_modified(): #######10.245.2.21 80 50, context: ngx.timer`
   its mean that the correct ip has be added because this is the pod ip in 
kubernetes.
   and if i set the upstream in nodes mod,it also works(use pod ip directly)
   this's the upstream set 
   ```
   {
     "uri": "/apisix/*",
     "name": "",
     "upstream": {
       "type": "roundrobin",
       "hash_on": "vars",
       "scheme": "http",
       "discovery_type": "kubernetes",
       "pass_host": "pass",
       "service_name": "nginx-service"
     },
     "status": 1
   }
   ```
   so i want to know how i should do to fix it
   
   ### Environment
   
   - APISIX version 2.15
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to