Skip to content

Commit

Permalink
fix: exclude data-protection pods from kb service (#7239)
Browse files Browse the repository at this point in the history
(cherry picked from commit 37a288d)
  • Loading branch information
leon-inf committed May 6, 2024
1 parent d7633b2 commit 02b8fde
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions deploy/helm/templates/dataprotection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
selector:
matchLabels:
{{- include "kubeblocks.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "dataprotection"
{{- if .Values.updateStrategy }}
strategy:
{{ toYaml .Values.updateStrategy | nindent 4 | trim }}
Expand All @@ -26,6 +27,7 @@ spec:
{{- end }}
labels:
{{- include "kubeblocks.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "dataprotection"
spec:
priorityClassName: {{ template "kubeblocks.priorityClassName" . }}
{{- with .Values.dataProtection.image.imagePullSecrets }}
Expand Down
2 changes: 2 additions & 0 deletions deploy/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
selector:
matchLabels:
{{- include "kubeblocks.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "apps"
{{- if .Values.updateStrategy }}
strategy:
{{ toYaml .Values.updateStrategy | nindent 4 | trim }}
Expand All @@ -24,6 +25,7 @@ spec:
{{- end }}
labels:
{{- include "kubeblocks.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "apps"
spec:
priorityClassName: {{ template "kubeblocks.priorityClassName" . }}
{{- with .Values.image.imagePullSecrets }}
Expand Down
3 changes: 2 additions & 1 deletion deploy/helm/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ spec:
{{- end }}
{{- end }}
selector:
{{- include "kubeblocks.selectorLabels" . | nindent 4 }}
{{- include "kubeblocks.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: "apps"

0 comments on commit 02b8fde

Please sign in to comment.