You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/11 09:58:06 UTC

[GitHub] [apisix] Nobilta opened a new issue, #7650: help request:about 503 Service Temporarily Unavailable

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: notifications-unsubscribe@apisix.apache.org.apache.org

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


[GitHub] [apisix] Nobilta commented on issue #7650: help request:about 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
Nobilta commented on issue #7650:
URL: https://github.com/apache/apisix/issues/7650#issuecomment-1212649915

   > @Nobilta Please read the document carefully: https://apisix.apache.org/docs/apisix/discovery/kubernetes/#interface
   i have reed this document carefully,i just want to use service discovery registry for kubernetes,if i make a wrong upstream setting?
   


-- 
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-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] Nobilta commented on issue #7650: help request:about 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
Nobilta commented on issue #7650:
URL: https://github.com/apache/apisix/issues/7650#issuecomment-1212716191

   - to slove this problem i change the upstream's service_name like `"service_name": "default/nginx-service:nginx-port"` ,and it works.


-- 
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-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] Nobilta commented on issue #7650: help request:about 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
Nobilta commented on issue #7650:
URL: https://github.com/apache/apisix/issues/7650#issuecomment-1212650019

   > @Nobilta Please read the document carefully: https://apisix.apache.org/docs/apisix/discovery/kubernetes/#interface
   
   i have reed this document carefully,i just want to use service discovery registry for kubernetes,if i make a wrong upstream setting?


-- 
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-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] tzssangglass closed issue #7650: help request:about 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
tzssangglass closed issue #7650: help request:about 503 Service Temporarily Unavailable
URL: https://github.com/apache/apisix/issues/7650


-- 
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-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] Nobilta closed issue #7650: help request:about 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
Nobilta closed issue #7650: help request:about 503 Service Temporarily Unavailable
URL: https://github.com/apache/apisix/issues/7650


-- 
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-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] robertluoxu commented on issue #7650: help request:about 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
robertluoxu commented on issue #7650:
URL: https://github.com/apache/apisix/issues/7650#issuecomment-1362572269

   i hava new question


-- 
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-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] tokers commented on issue #7650: help request:about 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #7650:
URL: https://github.com/apache/apisix/issues/7650#issuecomment-1212630811

   @Nobilta Please read the document carefully: https://apisix.apache.org/docs/apisix/discovery/kubernetes/#interface


-- 
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-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] tzssangglass commented on issue #7650: help request:about 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #7650:
URL: https://github.com/apache/apisix/issues/7650#issuecomment-1212692855

   > "discovery_type": "kubernetes",
   
   This is the wrong usage, you should read the documentation carefully.
   
   we specify the discovery type in `config.yaml` in the following way:
   
   ```yaml
   discovery:
     kubernetes:
   ```


-- 
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-unsubscribe@apisix.apache.org

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