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

discovery/ksm: improvements to discovery strategy #104

Merged
merged 2 commits into from
May 14, 2021
Merged

discovery/ksm: improvements to discovery strategy #104

merged 2 commits into from
May 14, 2021

Conversation

roobre
Copy link
Contributor

@roobre roobre commented May 14, 2021

No description provided.

@roobre roobre changed the title discovery/ksm: fix usage of Trim for stripping suffix discovery/ksm: improvements to discovery strategy May 14, 2021
@roobre roobre added bug Categorizes issue or PR as related to a bug. feature request Categorizes issue or PR as related to a new feature or enhancement. labels May 14, 2021
In order to discover the pod where KSM is located, we make non-namespaced requests to the API server searching for different labels. The helm chart we're currently deploying as a dependency uses:
app.kubernetes.io/name=kube-state-metrics
This commit moves this label to be the first one being tried, which should reduce the number of requests to the API server to 1/3 when KSM is deployed with its helm chart (which is, to our understanding, the most common scenario).
Copy link
Contributor

@invidian invidian left a comment

Choose a reason for hiding this comment

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

Seems OK

@roobre roobre merged commit b6cec89 into main May 14, 2021
@roobre roobre deleted the fix-trim branch May 14, 2021 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug. feature request Categorizes issue or PR as related to a new feature or enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants