mirror of https://github.com/kubernetes/kops.git
Merge pull request #12608 from johngmyers/external-ipv6
dns-controller: Treat IPv6 node addresses as both internal and external
This commit is contained in:
commit
bfaee4e6ef
|
|
@ -165,7 +165,7 @@ func (c *NodeController) updateNodeRecords(node *v1.Node) string {
|
|||
|
||||
// node/<name>/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
|
||||
|
|
|
|||
Loading…
Reference in New Issue