Skip to content

Commit

Permalink
Replaced "matchLabelKeys" with "labelSelector" in Pod Topology Spread…
Browse files Browse the repository at this point in the history
… Constraints
  • Loading branch information
bastianeicher committed May 3, 2023
1 parent 56fa3e2 commit bf7d160
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions charts/generic-service/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,15 @@ spec:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
matchLabelKeys:
- app
- release
# Allow rebalancing during update
- {{ if eq .Values.rollout.controller "Deployment" }}pod-template-hash{{ else }}version{{ end }}
labelSelector:
matchLabels: {{- include "generic-service.selector-labels" . | nindent 14 }}
# Allow rebalancing during update
version: {{ .Values.version | default .Values.image.tag | quote }}
- maxSkew: 2
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
matchLabelKeys:
- app
- release
labelSelector:
matchLabels: {{- include "generic-service.selector-labels" . | nindent 14 }}

affinity:
{{- if .Values.podAffinity }}
Expand Down

0 comments on commit bf7d160

Please sign in to comment.