diff --git a/upup/models/cloudup/resources/addons/external-dns.addons.k8s.io/k8s-1.19.yaml.template b/upup/models/cloudup/resources/addons/external-dns.addons.k8s.io/k8s-1.19.yaml.template index 9caf028c159e7..301da472a7729 100644 --- a/upup/models/cloudup/resources/addons/external-dns.addons.k8s.io/k8s-1.19.yaml.template +++ b/upup/models/cloudup/resources/addons/external-dns.addons.k8s.io/k8s-1.19.yaml.template @@ -63,6 +63,10 @@ spec: value: "127.0.0.1" - name: KUBERNETES_SERVICE_PORT value: "443" +{{ range $name, $value := DNSControllerEnvs }} + - name: {{ $name }} + value: {{ $value }} +{{ end }} ports: - name: http protocol: TCP diff --git a/upup/pkg/fi/cloudup/template_functions.go b/upup/pkg/fi/cloudup/template_functions.go index 68f6c1d452446..2af4c894a2dda 100644 --- a/upup/pkg/fi/cloudup/template_functions.go +++ b/upup/pkg/fi/cloudup/template_functions.go @@ -815,6 +815,8 @@ func (tf *TemplateFunctions) ExternalDNSArgv() ([]string, error) { switch cloudProvider { case kops.CloudProviderAWS: argv = append(argv, "--provider=aws") + case kops.CloudProviderOpenstack: + argv = append(argv, "--provider=designate") case kops.CloudProviderGCE: project := cluster.Spec.CloudProvider.GCE.Project argv = append(argv, "--provider=google")