From 540a1ca8035a03eeb5b7b92b725f5b73b639f4b4 Mon Sep 17 00:00:00 2001 From: John Gardiner Myers Date: Mon, 25 Oct 2021 00:13:38 -0700 Subject: [PATCH] dns-controller: Treat IPv6 node addresses as both internal and external --- dns-controller/pkg/watchers/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns-controller/pkg/watchers/node.go b/dns-controller/pkg/watchers/node.go index 06174081f6..553df7213b 100644 --- a/dns-controller/pkg/watchers/node.go +++ b/dns-controller/pkg/watchers/node.go @@ -165,7 +165,7 @@ func (c *NodeController) updateNodeRecords(node *v1.Node) string { // node//external -> ExternalIP for _, a := range node.Status.Addresses { - if a.Type != v1.NodeExternalIP { + if a.Type != v1.NodeExternalIP && (a.Type != v1.NodeInternalIP || !utils.IsIPv6IP(a.Address)) { continue } var recordType dns.RecordType = dns.RecordTypeA