Skip to content

Commit

Permalink
Implement topologySpreadConstraints (#20)
Browse files Browse the repository at this point in the history
Implement topologySpreadConstraints
  • Loading branch information
runningman84 authored Sep 30, 2023
1 parent bb84251 commit b42b9a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm-chart/kubemod/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: kubemod
description: KubeMod is a universal Kubernetes mutating operator.
version: 0.5.0
version: 0.5.1
appVersion: "v0.19.1"
kubeVersion: ">= 1.16.0-0"
home: https://github.com/kubemod/kubemod
Expand Down
13 changes: 13 additions & 0 deletions helm-chart/kubemod/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,16 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
topologySpreadConstraints:
- labelSelector:
matchLabels:
{{- include "kubemod.selectorLabels" . | nindent 12 }}
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
{{- include "kubemod.selectorLabels" . | nindent 12 }}
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule

0 comments on commit b42b9a9

Please sign in to comment.