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

Avoid requesting the same secret more than once #1609

Open
alonstern opened this issue Jul 3, 2024 · 1 comment
Open

Avoid requesting the same secret more than once #1609

alonstern opened this issue Jul 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@alonstern
Copy link

Hi,

I have a k8s cluster with a few thousands pods, which all use the same secrets. The CSI driver make a number of secrets * number of pods requests to the keyvault. This causes some issues where the Keyvault is throttling, and the CSI driver does not handle it well and my pods gets into a restart-loop.

Is there a way to configure the CSI driver such that each secret will be requested once and not per pod?

@alonstern alonstern added the enhancement New feature or request label Jul 3, 2024
@mr-onion-2
Copy link

mr-onion-2 commented Jan 22, 2025

I've not noticed throttling or any restart loops but on a similar note we did have a significant cost increase after enabling auto-rotation. The volume of requests increased the daily keyvault costs from a few pence to approx £2, per day, per keyvault.

Reducing the polling frequency isn't really desirable. We are planning to switch from mounting the SCP in every pod that needs it to a few dedicated pods only. The resulting secret will then of course be shared by all the other pods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants