From 1b3c2dab2e730bd9c309ab8663a981df68f765fb Mon Sep 17 00:00:00 2001
From: Kay Yan <yankay@users.noreply.github.com>
Date: Thu, 22 Sep 2022 19:27:03 +0800
Subject: [PATCH] add_max_concurrent_in_coredns (#9307)

---
 roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2 b/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2
index cb5aafc2f..1ee1601d4 100644
--- a/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2
+++ b/roles/kubernetes-apps/ansible/templates/coredns-config.yml.j2
@@ -49,10 +49,12 @@ data:
 {% if upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
         forward . {{ upstream_dns_servers|join(' ') }} {
           prefer_udp
+          max_concurrent 1000
         }
 {% else %}
         forward . /etc/resolv.conf {
           prefer_udp
+          max_concurrent 1000
         }
 {% endif %}
 {% if enable_coredns_k8s_external %}
-- 
GitLab