You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apisix uses a singleton to load the service account file and kubernetes rotates roughly every 90 days and after that time, the discovery will fail to get new pods with Unauthorized returned from kubernetes' API leading to stale pods in memory and nginx making calls to pods that do not exist anymore (in case deployments were rolled out)
If there is a way to rotate the service account, this would reproduce it but i am not sure it is possible
Environment
APISIX version (run apisix version):
/usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua version
3.5.0
Operating system (run uname -a):
Linux apisix-7bd7684cdf-2k524 5.10.220-209.869.amzn2.x86_64 change: added doc of how to load plugin. #1 SMP Wed Jul 17 15:10:20 UTC 2024 x86_64 GNU/Linux
OpenResty / Nginx version (run openresty -V or nginx -V):
Current Behavior
apisix uses a singleton to load the service account file and kubernetes rotates roughly every 90 days and after that time, the discovery will fail to get new pods with Unauthorized returned from kubernetes' API leading to stale pods in memory and nginx making calls to pods that do not exist anymore (in case deployments were rolled out)
Expected Behavior
apisix should re-read the token file every X days
Error Logs
Steps to Reproduce
If there is a way to rotate the service account, this would reproduce it but i am not sure it is possible
Environment
apisix version
):/usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua version
3.5.0
uname -a
):Linux apisix-7bd7684cdf-2k524 5.10.220-209.869.amzn2.x86_64 change: added doc of how to load plugin. #1 SMP Wed Jul 17 15:10:20 UTC 2024 x86_64 GNU/Linux
openresty -V
ornginx -V
):The text was updated successfully, but these errors were encountered: