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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]