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 committed Dec 4, 2023
1 parent 7ada1eb commit 1a3a23a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/roles/nuxt-client-core/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ spec:
requests:
cpu: {{ NUXTCLIENT_CPU_REQUESTS|default("100m", true) }}
memory: {{ NUXTCLIENT_MEMORY_REQUESTS|default("32Mi", true) }}
{% if AFFINITY_ENABLE is defined and AFFINITY_ENABLE|bool %}
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down Expand Up @@ -122,6 +123,7 @@ spec:
values:
- nuxtclient
topologyKey: "topology.kubernetes.io/zone"
{% endif %}
volumes:
- name: pid-dir
emptyDir: {}
Expand Down

0 comments on commit 1a3a23a

Please sign in to comment.