Skip to content

Commit

Permalink
BC-5423 - make affinity optional for all
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Dec 4, 2023
1 parent d860c36 commit 34f312e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ spec:
volumes:
- name: shared
emptyDir: {}
{% if AFFINITY_ENABLE is defined and AFFINITY_ENABLE|bool %}
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down Expand Up @@ -101,3 +102,4 @@ spec:
values:
- scanfile
topologyKey: "topology.kubernetes.io/zone"
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ spec:
requests:
cpu: {{ ANTIVIRUS_WEBSERVER_CPU_REQUESTS|default("100m", true) }}
memory: {{ ANTIVIRUS_WEBSERVER_MEMORY_REQUESTS|default("128Mi", true) }}
{% if AFFINITY_ENABLE is defined and AFFINITY_ENABLE|bool %}
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down Expand Up @@ -98,3 +99,4 @@ spec:
values:
- webserver
topologyKey: "topology.kubernetes.io/zone"
{% endif %}

0 comments on commit 34f312e

Please sign in to comment.