Browse Source

CoreDNS deployment extra tolerations (#5364)

* Add extra tolerations for coredns

* dns_extra_tolerations option

* dns_extra_tolerations

* missing starting space in comment
pull/5390/head
Anton Fayzrahmanov 5 years ago
committed by Kubernetes Prow Robot
parent
commit
80418a44d5
2 changed files with 4 additions and 0 deletions
  1. 1
      roles/kubernetes-apps/ansible/defaults/main.yml
  2. 3
      roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2

1
roles/kubernetes-apps/ansible/defaults/main.yml

@ -8,6 +8,7 @@ dns_nodes_per_replica: 16
dns_cores_per_replica: 256
dns_prevent_single_point_failure: "{{ 'true' if dns_min_replicas|int > 1 else 'false' }}"
coredns_ordinal_suffix: ""
# dns_extra_tolerations: [{effect: NoSchedule, operator: "Exists"}]
# nodelocaldns
nodelocaldns_cpu_requests: 100m

3
roles/kubernetes-apps/ansible/templates/coredns-deployment.yml.j2

@ -34,6 +34,9 @@ spec:
effect: NoSchedule
- key: "CriticalAddonsOnly"
operator: "Exists"
{% if dns_extra_tolerations | default(None) %}
{{ dns_extra_tolerations | list | to_nice_yaml(indent=2) | indent(8) }}
{% endif %}
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:

Loading…
Cancel
Save