-
Notifications
You must be signed in to change notification settings - Fork 339
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: Unable to reconnect to apisix, when all ep are deleted under svc of apisix #769
Comments
I will try to reproduce. |
Thanks! |
cc @gxthrj PTAL |
I can give you some clues about this issue. When the controller gets the opportunity to be the new leader, it tries to add the cluster (name is A simple solution for this is destroyed the old cluster when it gives up the leader role. |
I encountered the same situation, but I also encountered the problem that the leader would not switch. |
Same error about apisix ingress accesses to apisix admin api.
I can access apisix admin api by curl: curl http://apisix-admin.ingress-apisix.svc.cluster.local:9180/apisix/admin/routes -H 'X-API-KEY: xxxxx'
{ result xxxxxx } |
#774 has been merged. It will be released in v1.4 (next week) If you want to try it now, you can also build docker image to use it. I will close this one. |
Issue description
我在k8s上部署了一个apisix,一个apisix-controller,两台配置好后controller健康检查无问题,
当apisix pod被kill后就算pod重新拉起,controller仍然无法重新连接到apisix
但是我后续手动admin访问pod相同地址没有问题
如果有两个或多个apisix pod时只要存在一个活的pod就不会有问题,但是当短时间内没有pod存活就会无法再连接上
是我配置问题,还是本来没有pod能访问时就应该再也无法连接呢
在controller启动同步后,删除service再恢复可以百分之百复现
config-map
Environment
apisix-ingress-controller version --long
);kubectl version
);uname -a
).The text was updated successfully, but these errors were encountered: