Skip to content

Commit

Permalink
Merge pull request #19 from guisen4332/selectorLabels
Browse files Browse the repository at this point in the history
include release name/instance in selectorLabels,
so if multiple instances of the chart are deployed,
the separate services route to the appropriate pods
  • Loading branch information
ploxiln authored Nov 1, 2024
2 parents a4795f5 + af2e62b commit bed43d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/nsq/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,23 @@ nsqlookupd selector labels
*/}}
{{- define "nsq.nsqlookupd.selectorLabels" -}}
app.kubernetes.io/component: nsqlookupd
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
nsqadmin selector labels
*/}}
{{- define "nsq.nsqadmin.selectorLabels" -}}
app.kubernetes.io/component: nsqadmin
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
nsqd selector labels
*/}}
{{- define "nsq.nsqd.selectorLabels" -}}
app.kubernetes.io/component: nsqd
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Expand Down

0 comments on commit bed43d1

Please sign in to comment.