Skip to content

Commit

Permalink
CI: add topologySpreadConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrz authored Aug 27, 2024
1 parent cd20684 commit 62febc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/simple-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
maxSkew: {{ .Values.skew }}
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: {{ .Values.skewPolicy }}
3 changes: 3 additions & 0 deletions charts/simple-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

skew: 1
skewPolicy: ScheduleAnyway

nameOverride: ""
fullnameOverride: ""

Expand Down

0 comments on commit 62febc8

Please sign in to comment.