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

Use new K8s clients provider in Flux plugin #5379

Merged
merged 3 commits into from Sep 28, 2022
Merged

Conversation

castelblanque
Copy link
Collaborator

Description of the change

Follow-up PR to #5358. In this case for Flux plugin.
Using the new clients provider with independent functions, so not all clients are created at once.

Specifically, when creating the Dynamic and ControllerRuntime clients, many requests are done at the same time againts K8s APIs. In the scenario of Pinniped, those requests are done against pinniped-proxy, which proxies to the actual k8s API server. There is no throttling between kubeapps-apis and pinniped-proxy, as all clients count with qps/burst configuration. So if there is a throttling problem, it must be at pinniped-proxy against k8s API server. Maybe a connection pool limitation?

Benefits

Should speed up a bit requests to Kubeapps APIs in the pinniped scenario.

Possible drawbacks

N/A

Applicable issues

Additional information

Added client QPS and burst configuration to in-cluster clients too.

Rafa Castelblanque added 2 commits September 22, 2022 16:50
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
@netlify
Copy link

netlify bot commented Sep 22, 2022

Deploy Preview for kubeapps-dev ready!

Name Link
🔨 Latest commit 8c7bdba
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/6333fb897915120008f2c484
😎 Deploy Preview https://deploy-preview-5379--kubeapps-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Comment on lines +238 to +239
config.QPS = clientQPS
config.Burst = clientBurst
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added qps and burst params to in-cluster/background clients provider.

Copy link
Contributor

@antgamdia antgamdia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!! Forgot to +1ing before, sorry!

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

Successfully merging this pull request may close these issues.

None yet

3 participants