Skip to content

Commit bed43d1

Browse files
authored
Merge pull request #19 from guisen4332/selectorLabels
include release name/instance in selectorLabels, so if multiple instances of the chart are deployed, the separate services route to the appropriate pods
2 parents a4795f5 + af2e62b commit bed43d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

charts/nsq/templates/_helpers.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,23 @@ nsqlookupd selector labels
6161
*/}}
6262
{{- define "nsq.nsqlookupd.selectorLabels" -}}
6363
app.kubernetes.io/component: nsqlookupd
64+
app.kubernetes.io/instance: {{ .Release.Name }}
6465
{{- end }}
6566

6667
{{/*
6768
nsqadmin selector labels
6869
*/}}
6970
{{- define "nsq.nsqadmin.selectorLabels" -}}
7071
app.kubernetes.io/component: nsqadmin
72+
app.kubernetes.io/instance: {{ .Release.Name }}
7173
{{- end }}
7274

7375
{{/*
7476
nsqd selector labels
7577
*/}}
7678
{{- define "nsq.nsqd.selectorLabels" -}}
7779
app.kubernetes.io/component: nsqd
80+
app.kubernetes.io/instance: {{ .Release.Name }}
7881
{{- end }}
7982

8083
{{/*

0 commit comments

Comments
 (0)