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/12/08 02:30:02 UTC

[GitHub] [apisix] maqile opened a new issue, #8477: help request:

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

   ### Description
   
   请教下,k8s服务发现部分,如果apisix 部署在k8s集群外部,是通过什么方式访问容器内部服务的,内部service 一定要是 nodeport方式访问么
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - 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-unsubscribe@apisix.apache.org.apache.org

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


[GitHub] [apisix] zhixiongdu027 commented on issue #8477: help request:

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

   
   First, kubernetes discovery provides pod's  ip:port , not service's
   And how to access pod's  ip:port  is actually not the responsibility of discovery
   
   
   Normally, programs running on kubernetes nodes can directly access the pod ip,
   You can deploy apisix on a node of your cluster
   
   
   As for the "NodePort" you mentioned, it has nothing to do with your goal
   


-- 
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] maqile commented on issue #8477: help request:

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

   thanks


-- 
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] maqile commented on issue #8477: help request:

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

   如果apisix 部署在 k8s 集群外边 ,怎么访问 pod's ip:port ,不能访问吧


-- 
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 #8477: help request:

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

   > 内部service 一定要是 nodeport方式访问么
   
   AFAIK, yes. and cc @zhixiongdu027 


-- 
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] zhixiongdu027 commented on issue #8477: help request:

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

   Discovery will read config.service.host and config.service.port values at startup, and then use host:port to communicate with apiserver.
   
   
   > 那服务发现怎么知道apisix是部署在集群内部还是外部
   
   apisix discovery does not know whether it is running inside or outside the pod.
   
   It is only when the user does not configure config.server.host, config.server.port values,
   read the environment variables 
               $KUBERNETES_SERVICE_HOST
               $KUBERNETES_SERVICE_PORT
   instead.
   
   In Pod, these two environment variables have value
   And if you need to deploy apisix outside the cluster, you can also set these two environment variables pointing to apiserver
   
   


-- 
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] zhixiongdu027 commented on issue #8477: help request:

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

   
   > 如果apisix 部署在 k8s 集群外边 ,怎么访问 pod's ip:port ,不能访问吧
   
   Normally, programs running on kubernetes nodes can directly access the pod ip,
   You can deploy apisix on a node of your cluster
   


-- 
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] maqile commented on issue #8477: help request:

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

   那服务发现怎么知道apisix是部署在集群内部还是外部,如果部署在内部是不是路由信息是 pod+port


-- 
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] maqile closed issue #8477: help request:

Posted by GitBox <gi...@apache.org>.
maqile closed issue #8477: help request: 
URL: https://github.com/apache/apisix/issues/8477


-- 
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