Skip to content

Commit

Permalink
Merge pull request #12259 from olemarkus/ipv6-nameserver
Browse files Browse the repository at this point in the history
Set ipv6 nameservers on aws
  • Loading branch information
k8s-ci-robot committed Sep 3, 2021
2 parents 600e942 + c390d45 commit ca26d43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/model/components/kubedns.go
Expand Up @@ -75,6 +75,12 @@ func (b *KubeDnsOptionsBuilder) BuildOptions(o interface{}) error {
clusterSpec.KubeDNS.MemoryLimit = &defaultMemoryLimit
}

if clusterSpec.IsIPv6Only() && kops.CloudProviderID(clusterSpec.CloudProvider) == kops.CloudProviderAWS {
if len(clusterSpec.KubeDNS.UpstreamNameservers) == 0 {
clusterSpec.KubeDNS.UpstreamNameservers = []string{"fd00:ec2::253"}
}
}

nodeLocalDNS := clusterSpec.KubeDNS.NodeLocalDNS
if nodeLocalDNS == nil {
nodeLocalDNS = &kops.NodeLocalDNSConfig{}
Expand Down

0 comments on commit ca26d43

Please sign in to comment.