Skip to content

Commit

Permalink
BC-5423 - make affinity rules optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Dec 4, 2023
1 parent f59448c commit bc97938
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ spec:
requests:
cpu: {{ CALENDAR_CPU_REQUESTS|default("100m", true) }}
memory: {{ CALENDAR_MEMORY_REQUESTS|default("128Mi", true) }}
{% if AFFINITY_ENABLE is defined and AFFINITY_ENABLE|bool %}
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down Expand Up @@ -116,3 +117,4 @@ spec:
values:
- calendar
topologyKey: "topology.kubernetes.io/zone"
{% endif %}

0 comments on commit bc97938

Please sign in to comment.