WIP: Need to publish IPv4 DNS records

On GCE the Node's IPv6 record is not published, so we need the IPv4 record.
This commit is contained in:
Justin SB 2022-04-24 11:15:08 -04:00 committed by justinsb
parent 9816fd9416
commit f80a66903b
1 changed files with 4 additions and 0 deletions

View File

@ -633,6 +633,10 @@ func (tf *TemplateFunctions) DNSControllerArgv() ([]string, error) {
if cluster.Spec.IsIPv6Only() {
argv = append(argv, "--internal-ipv6")
// We need IPv4 on GCE, because we aren't publishing IPv6 Node IPs on GCE yet
if cluster.Spec.GetCloudProvider() == kops.CloudProviderGCE {
argv = append(argv, "--internal-ipv4")
}
} else {
argv = append(argv, "--internal-ipv4")
}