-
Notifications
You must be signed in to change notification settings - Fork 282
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
[thanos] add "component: server" to sidecar selector #1077
base: master
Are you sure you want to change the base?
Conversation
sidecar is usually running with the server without this qualification, other components like pushgateway and node_exporter will match
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @belm0 LGTM
We use the Thanos chart in harmony with Prometheus Operator Chart which installs prometheus with label set:
and node export with
Considering this fixing a default value in the values file does not seem proper. Can you please describe your use case? |
the official prometheus Helm Chart sets If we don't select correctly on Currently we have this explicit selector:
if there isn't an appropriate default that doesn't cause surprises, I understand this PR may not be viable. But I'll argue that not selecting on |
I agree that is better to have a concrete label selector and I'll suggest in a Prometheus Operator issue to use the official Kubernetes suggested labels for the components. |
What's in this PR?
Qualify the selector for the sidecar pod to the prometheus server component.
Why?
Sidecar is usually running with the server. Without this qualification, pods of other components like pushgateway or node_exporter will match.