-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Independent external APIs cannot be automatically discovered by linking APIs servers #7185
Comments
Could you add a log
in
|
您好 请问您会讲中文吗 如果会的话 我向您提问一下 这行代码加在lua文件的什么位置?
还有个问题,当我把配置中的token_file改位token时它不再出现报错 但是我也不能确定它是否获取到了对应的endpoints
… 2022年6月2日 下午5:45,罗泽轩 ***@***.***> 写道:
local cjson = require("cjson.safe"); ngx.log(ngx.EMERG, "AA", cjson.encode(apiserver))
|
我尝试通过api创建一个路由 因为dashboard还没办法创建 命令如下
但是 当我尝试通过apisix访问域名时 发现apisix报错如下
2022/06/03 19:25:53 [error] 3135#3135: *10445111 [lua] init.lua:517: http_access_phase(): failed to set upstream: no valid upstream node: nil, client: 100.100.100.100, server: _, request: "GET /actuator/health HTTP/1.1", host: "teacher-test.xxxx.cn”
官网中没有对kubernetes的自动发现做详细的描述 所以此刻 我不清楚问题出在了哪里
上图中 service_name字段 yace是我k8s中的namespace teacher-app是我的endpoints名称
… 2022年6月2日 下午5:45,罗泽轩 ***@***.***> 写道:
local cjson = require("cjson.safe"); ngx.log(ngx.EMERG, "AA", cjson.encode(apiserver))
|
In the line above this line of code:
The new code was added to print what |
请回复一下这个问题
… 2022年6月3日 下午7:35,梁亚旺 ***@***.***> 写道:
我尝试通过api创建一个路由 因为dashboard还没办法创建 命令如下
<粘贴的图形-1.tiff>
但是 当我尝试通过apisix访问域名时 发现apisix报错如下
2022/06/03 19:25:53 [error] 3135#3135: *10445111 [lua] init.lua:517: http_access_phase(): failed to set upstream: no valid upstream node: nil, client: 100.100.100.100, server: _, request: "GET /actuator/health HTTP/1.1", host: "teacher-test.xxxx.cn <http://teacher-test.xxxx.cn/>”
官网中没有对kubernetes的自动发现做详细的描述 所以此刻 我不清楚问题出在了哪里
上图中 service_name字段 yace是我k8s中的namespace teacher-app是我的endpoints名称
> 2022年6月2日 下午5:45,罗泽轩 ***@***.*** ***@***.***>> 写道:
>
> local cjson = require("cjson.safe"); ngx.log(ngx.EMERG, "AA", cjson.encode(apiserver))
|
This log indicates that APISIX was unable to query valid IP from kubernates based on
I didn't find an article describing this in detail either. You can choose to read the source code to understand it. Or you can try the suggestion above to add log output and let's locate the problem together. |
请问一下是否能够提供一个通过api创建自动发现类型为kubernetes的路由的例子
… 2022年6月4日 下午6:29,梁亚旺 ***@***.***> 写道:
Dear team member
Do you have any examples about the configuration of automatic discovery by APIs through kubernetes and the creation of routes with kubernetes as the type of automatic discovery through APIs? If yes, please send me examples for other types of automatic discovery in the official website, except kubernetes. I think I may have used them incorrectly, so please give me two examples to try. Thank you very much
|
hi @zhixiongdu027 , can you provide some examples? |
抱歉抱歉,我现在才看到此信息。 根据报错信息显示,我初步怀疑跟 |
I'm sorry, I've done several scene simulations locally and can't reproduce the situation in the picture. Maybe the problem is related to the cluster configuration, Is it convenient for me to communicate quickly through Im (wechat ,qq, mail) to solve this problem? |
Dear team member
Do you have any examples about the configuration of automatic discovery by APIs through kubernetes and the creation of routes with kubernetes as the type of automatic discovery through APIs? If yes, please send me examples for other types of automatic discovery in the official website, except kubernetes. I think I may have used them incorrectly, so please give me two examples to try. Thank you very much
… 2022年6月4日 下午3:56,tzssangglass ***@***.***> 写道:
2022/06/03 19:25:53 [error] 3135#3135: *10445111 [lua] init.lua:517: http_access_phase(): failed to set upstream: no valid upstream node: nil, client: 100.100.100.100, server: _, request: "GET /actuator/health HTTP/1.1", host: "teacher-test.xxxx.cn”
This log indicates that APISIX was unable to query valid IP from kubernates based on service_name. From the information you provided it is hard to tell where the problem is.
官网中没有对kubernetes的自动发现做详细的描述 所以此刻 我不清楚问题出在了哪里
I didn't find an article describing this in detail either.
You can choose to read the source code to understand it.
Or you can try the suggestion above to add log output and let's locate the problem together.
—
Reply to this email directly, view it on GitHub <#7185 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKKWAITVGJZQTT7AKVU2QPLVNMD2DANCNFSM5XUHQVKQ>.
You are receiving this because you authored the thread.
|
No description provided.
The text was updated successfully, but these errors were encountered: