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

Performance : mutualize kubernetes client #537

Merged
merged 5 commits into from
Dec 17, 2024
Merged

Conversation

olevitt
Copy link
Contributor

@olevitt olevitt commented Dec 17, 2024

This PR allow mutualization of Kubernetes client so that only one is used instead of creating multiple ones for each incoming request.
Kubernetes client is thread-safe according to the library documentation.
This PR results in a HUGE decrease of the number of threads created by the API fixing #421

⚠️ This PR only handles the default serviceAccount authentication mode as other modes (impersonate & token passthrough) rely on specific client configuration ⚠️

@olevitt olevitt added the performance Performance label Dec 17, 2024
@olevitt olevitt changed the title Performances : mutualize kubernetes client Performance : mutualize kubernetes client Dec 17, 2024
Copy link

@olevitt olevitt merged commit ab4808f into main Dec 17, 2024
9 checks passed
@olevitt olevitt deleted the mutualize-kubernetes-client branch December 17, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant