[thanos] add "component: server" to sidecar selector#1077
[thanos] add "component: server" to sidecar selector#1077belm0 wants to merge 1 commit intobanzaicloud:masterfrom
Conversation
sidecar is usually running with the server without this qualification, other components like pushgateway and node_exporter will match
|
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.