Browse Source

Added new configuration item for extra tolerations in DNS autoscaler

Signed-off-by: Sébastien Masset <smt.masset@gmail.com>
pull/9240/head
Sébastien Masset 2 years ago
committed by Florian Ruynat
parent
commit
2546eb2559
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/dns-autoscaler.yml.j2

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

@ -24,6 +24,7 @@ nodelocaldns_secondary_prometheus_port: 9255
dns_autoscaler_cpu_requests: 20m dns_autoscaler_cpu_requests: 20m
dns_autoscaler_memory_requests: 10Mi dns_autoscaler_memory_requests: 10Mi
dns_autoscaler_deployment_nodeselector: "kubernetes.io/os: linux" dns_autoscaler_deployment_nodeselector: "kubernetes.io/os: linux"
# dns_autoscaler_extra_tolerations: [{effect: NoSchedule, operator: "Exists"}]
# etcd metrics # etcd metrics
# etcd_metrics_service_labels: # etcd_metrics_service_labels:

3
roles/kubernetes-apps/ansible/templates/dns-autoscaler.yml.j2

@ -45,6 +45,9 @@ spec:
key: node-role.kubernetes.io/master key: node-role.kubernetes.io/master
- effect: NoSchedule - effect: NoSchedule
key: node-role.kubernetes.io/control-plane key: node-role.kubernetes.io/control-plane
{% if dns_autoscaler_extra_tolerations is defined %}
{{ dns_autoscaler_extra_tolerations | list | to_nice_yaml(indent=2) | indent(8) }}
{% endif %}
affinity: affinity:
podAntiAffinity: podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:

Loading…
Cancel
Save