Closed ppodevlabs closed 2 weeks ago
looking at the code, i would say this issue is related to the new service account management introduced in kubernetes 1.30 where the service account get a bound token which expires in 3607s.
The controller load the inClusterConfig
on start but never refresh it, so it stop working after 1h.
Fixed by #569
Bug description
Running capsule-proxy on AKS 1.30.3 integrated with microsoft entra ID. The proxy works properly during one hour, after this time we start getting errors regarding authentication
Restarting the proxy pod solve the issue. After some investigation it seems that the capsule-proxy lost the connectivity to the api-server once the cluster renew the service account token.
Capsule-proxy continues accepting requests and logs show groups/tenants are being detected but seems like the proxy is not capable of comunicate with the api-server.
Expected behavior
Capsule-proxy continues working after the token is refreshed.
Logs
There are no error logs within the proxy logs.
Additional context