-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Labels
Description
Currently, the service selectors are hardcoded:
{{/*
Selector labels
*/}}
{{- define "haproxy.selectorLabels" -}}
app.kubernetes.io/name: {{ include "haproxy.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
References:
- https://github.com/haproxytech/helm-charts/blob/main/haproxy/templates/service.yaml#L34
- https://github.com/haproxytech/helm-charts/blob/main/haproxy/templates/_helpers.tpl#L76-L77
The main issue is that when running two HAProxy instances within the same Helm release, they end up sharing the same selectors. As a result, traffic is not routed correctly between the instances.
It would be helpful to have an option to configure additional or custom selectorLabels to better support scenarios like this.
dkorunic