Always support cluster.local domain in CoreDNS
Change-Id: I70665f754ad2e607042d754ff98d7531ad1ba880
Related-PROD: PROD-24070
diff --git a/kubernetes/files/kube-addons/coredns/coredns-cm.yml b/kubernetes/files/kube-addons/coredns/coredns-cm.yml
index 71ddcb9..a9b8da6 100644
--- a/kubernetes/files/kube-addons/coredns/coredns-cm.yml
+++ b/kubernetes/files/kube-addons/coredns/coredns-cm.yml
@@ -32,7 +32,11 @@
cache 30
reload
loadbalance
+{%- if common.addons.coredns.domain == "cluster.local" %}
kubernetes {{ common.addons.coredns.domain|replace('_', '-') }}. in-addr.arpa ip6.arpa {
+{%- else %}
+ kubernetes {{ common.addons.coredns.domain|replace('_', '-') }}. cluster.local. in-addr.arpa ip6.arpa {
+{%- endif %}
pods insecure
upstream
fallthrough in-addr.arpa ip6.arpa