Skip to content

Commit

Permalink
Keep the instance label of drainer same with the TiDB cluster in favo…
Browse files Browse the repository at this point in the history
…r of monitoring (#1170)

Signed-off-by: Aylei <rayingecho@gmail.com>
  • Loading branch information
aylei authored Nov 18, 2019
1 parent 1012ab7 commit 245f372
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/tidb-drainer/templates/drainer-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
app.kubernetes.io/name: {{ include "drainer-configmap.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/instance: {{ .Values.clusterName }}
app.kubernetes.io/component: drainer
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
data:
Expand Down
4 changes: 2 additions & 2 deletions charts/tidb-drainer/templates/drainer-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
app.kubernetes.io/name: {{ include "drainer.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/instance: {{ .Values.clusterName }}
app.kubernetes.io/component: drainer
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
spec:
Expand All @@ -15,5 +15,5 @@ spec:
port: 8249
selector:
app.kubernetes.io/name: {{ include "drainer.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/instance: {{ .Values.clusterName }}
app.kubernetes.io/component: drainer
6 changes: 3 additions & 3 deletions charts/tidb-drainer/templates/drainer-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ metadata:
labels:
app.kubernetes.io/name: {{ include "drainer.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/instance: {{ .Values.clusterName }}
app.kubernetes.io/component: drainer
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
spec:
selector:
matchLabels:
app.kubernetes.io/name: {{ include "drainer.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/instance: {{ .Values.clusterName }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/component: drainer
serviceName: {{ include "drainer.name" . }}
Expand All @@ -25,7 +25,7 @@ spec:
prometheus.io/port: "8249"
labels:
app.kubernetes.io/name: {{ include "drainer.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/instance: {{ .Values.clusterName }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/component: drainer
spec:
Expand Down

0 comments on commit 245f372

Please sign in to comment.