Skip to content

Commit

Permalink
add external dns support for openstack
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaab committed Nov 18, 2024
1 parent 9602a97 commit ca5dd3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ spec:
externalNetwork: external
cloudProvider: openstack
configBase: memfs://tests/floatingip-openstack.k8s.local
externalDns:
provider: external-dns
etcdClusters:
- etcdMembers:
- instanceGroup: master-us-test1-a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions upup/pkg/fi/cloudup/template_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ca5dd3f

Please sign in to comment.