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 df14591 commit 3c16b2c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ spec:
requests:
cpu: {{ H5P_STATICFIILES_SERVER_CPU_REQUESTS|default("100m", true) }}
memory: {{ H5P_STATICFIILES_SERVER_MEMORY_REQUESTS|default("128Mi", true) }}
{% if AFFINITY_ENABLE is defined and AFFINITY_ENABLE|bool %}
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down Expand Up @@ -113,3 +114,4 @@ spec:
values:
- h5p-staticfiles-server
topologyKey: "topology.kubernetes.io/zone"
{% endif %}

0 comments on commit 3c16b2c

Please sign in to comment.