Skip to content

Commit

Permalink
kubernetesGH-4252 Only manage internal DNS zone if configuration has …
Browse files Browse the repository at this point in the history
…been specified
  • Loading branch information
mellowplace committed Jun 22, 2018
1 parent 8fad9da commit 64974fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeup/pkg/model/kube_apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 64974fd

Please sign in to comment.