You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selecting of the base or headless service independently should be possible with label selectors.
Problem:
The labels generated for both services are not unique and hence there isn't a combo of labels that can be used to independently select an individual service.
Workaround (Partial):
Add a label to the base service using:
service:
labels:
some-label-key: some-value
This will allow the base service to be selected but not the headless service. It is also not future proof as the headless service template may at some point be updated to include .Values.service.labels.
Recommended action:
Add a label to both service templates that ensures the labels on each service will always be unique.
Base service grafana.com/grafana-service-type: base
Headless service grafana.com/grafana-service-type: headless
The text was updated successfully, but these errors were encountered:
sringel
changed the title
[grafana] Default labels added to services are not unique enough to be selectable by label selectors independently
[grafana] Services are not selectable by label selectors independently
Aug 16, 2024
Goal:
Selecting of the base or headless service independently should be possible with label selectors.
Problem:
The labels generated for both services are not unique and hence there isn't a combo of labels that can be used to independently select an individual service.
Workaround (Partial):
Add a label to the base service using:
This will allow the base service to be selected but not the headless service. It is also not future proof as the headless service template may at some point be updated to include
.Values.service.labels
.Recommended action:
Add a label to both service templates that ensures the labels on each service will always be unique.
Base service
grafana.com/grafana-service-type: base
Headless service
grafana.com/grafana-service-type: headless
The text was updated successfully, but these errors were encountered: