Skip to content

Commit

Permalink
BC-5423 - Make pod anti affinity rule configurable and optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Dec 1, 2023
1 parent e92e43b commit df14591
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ spec:
namespaceSelector: {}
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
{% if ANIT_AFFINITY_NODEPOOL_ENABLE is defined and ANIT_AFFINITY_NODEPOOL_ENABLE|bool %}
- weight: 10
podAffinityTerm:
labelSelector:
Expand All @@ -101,7 +102,8 @@ spec:
operator: In
values:
- h5p-staticfiles-server
topologyKey: "cloud.ionos.com/nodepool-name"
topologyKey: {{ ANIT_AFFINITY_NODEPOOL_TOPOLOGY_KEY }}
{% endif %}
- weight: 20
podAffinityTerm:
labelSelector:
Expand Down

0 comments on commit df14591

Please sign in to comment.