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 e85a005 commit a4310dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/roles/superhero-dashboard/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ spec:
requests:
cpu: {{ SHD_CPU_REQUESTS|default("100m", true) }}
memory: {{ SHD_MEMORY_REQUESTS|default("128Mi", true) }}
{% if AFFINITY_ENABLE is defined and AFFINITY_ENABLE|bool %}
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down Expand Up @@ -97,3 +98,4 @@ spec:
values:
- shd
topologyKey: "topology.kubernetes.io/zone"
{% endif %}

0 comments on commit a4310dd

Please sign in to comment.