From 64974fdd5b048baf970844614b4ee58d5490a39c Mon Sep 17 00:00:00 2001 From: Rob Graham Date: Thu, 21 Jun 2018 18:22:12 +0100 Subject: [PATCH] GH-4252 Only manage internal DNS zone if configuration has been specified --- nodeup/pkg/model/kube_apiserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodeup/pkg/model/kube_apiserver.go b/nodeup/pkg/model/kube_apiserver.go index 5d9ae53150274..8c1104cfc1b35 100644 --- a/nodeup/pkg/model/kube_apiserver.go +++ b/nodeup/pkg/model/kube_apiserver.go @@ -441,8 +441,8 @@ func (b *KubeAPIServerBuilder) buildPod() (*v1.Pod, error) { func (b *KubeAPIServerBuilder) buildAnnotations() map[string]string { annotations := make(map[string]string) - annotations["dns.alpha.kubernetes.io/internal"] = b.Cluster.Spec.MasterInternalName if b.Cluster.Spec.API != nil && b.Cluster.Spec.API.DNS != nil { + annotations["dns.alpha.kubernetes.io/internal"] = b.Cluster.Spec.MasterInternalName annotations["dns.alpha.kubernetes.io/external"] = b.Cluster.Spec.MasterPublicName }