Skip to content

Commit

Permalink
fix preferredDuringSchedulingIgnoredDuringExecution (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
domdepasquale authored Dec 19, 2023
1 parent c8d12aa commit 3f9002d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/application-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.0
version: 2.0.1

maintainers:
- name: Dominic DePasquale
16 changes: 9 additions & 7 deletions charts/application-core/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,15 @@ spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- {{ include "application-core.fullname" . }}
topologyKey: "kubernetes.io/hostname"
- weight: 100
podAffinityTerm:
topologyKey: "kubernetes.io/hostname"
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- {{ include "application-core.fullname" . }}
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
Expand Down

0 comments on commit 3f9002d

Please sign in to comment.