Skip to content
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

Does fluent bit support token refresh in kubernetes plugin #5332

Closed
jyotimahapatra opened this issue Apr 19, 2022 · 2 comments
Closed

Does fluent bit support token refresh in kubernetes plugin #5332

jyotimahapatra opened this issue Apr 19, 2022 · 2 comments

Comments

@jyotimahapatra
Copy link

Bug Report

Hi 👋 . I'm a kubernetes cluster operator in AWS EKS. While looking at some of the call patterns from UserAgent Fluent-Bit, i realized that fluent bit kubernetes plugin does not refresh the token periodically. Starting kubernetes 1.21, BoundServiceAccountTokens became enabled by default in kubernetes. This means that tokens mounted on the pod are refreshed at least every day and the clients must refresh the token in the calls to apiserver.

I'm not sure if my understanding around the token refresh is accurate, since i am not familiar with fluent bit code and C in general. I'd appreciate guidance around it. If the assumption is correct, with guidance I can help create a PR to fix the token refresh too :)

@PettitWesley
Copy link
Contributor

Probably the way this should work in the code should be to store the token read time with the token, and refresh it after one day. The refresh time can be made user configurable. That's my proposal for the implementation.

@novegit
Copy link
Contributor

novegit commented Apr 21, 2022

#4487 solves it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants