From 6212716320e203932a5c143ac2685467ce969eec Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Thu, 15 Aug 2024 20:05:28 +0000 Subject: [PATCH] fix(ingress/dns): specify nameserver hostname --- templates/ingress/k8s-gateway/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/ingress/k8s-gateway/install.sh b/templates/ingress/k8s-gateway/install.sh index 2b229da0..6295b5c6 100755 --- a/templates/ingress/k8s-gateway/install.sh +++ b/templates/ingress/k8s-gateway/install.sh @@ -73,6 +73,7 @@ helm upgrade --install "exdns-1" \ --namespace "${NAMESPACE}-${DOMAIN_NAME/./-}" \ --set domain="${DOMAIN_NAME}" \ --set secondary="exdns-2-k8s-gateway.${NAMESPACE}-${DOMAIN_NAME/./-}" \ + --set service.annotations."coredns\.io/hostname"="ns1.${DOMAIN_NAME}" \ --set service.loadBalancerIP="${DNS_SERVER_1}" \ --values "./values.yaml" helm upgrade --install "exdns-2" \ @@ -81,6 +82,7 @@ helm upgrade --install "exdns-2" \ --namespace "${NAMESPACE}-${DOMAIN_NAME/./-}" \ --set domain="${DOMAIN_NAME}" \ --set secondary="exdns-1-k8s-gateway.${NAMESPACE}-${DOMAIN_NAME/./-}" \ + --set service.annotations."coredns\.io/hostname"="ns2.${DOMAIN_NAME}" \ --set service.loadBalancerIP="${DNS_SERVER_2}" \ --values "./values.yaml"