Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specification of the target or targets in a VirtualServer's externalDNS properties #5196

Open
j1m-ryan opened this issue Mar 5, 2024 · 3 comments
Assignees
Labels
proposal An issue that proposes a feature request

Comments

@j1m-ryan
Copy link

j1m-ryan commented Mar 5, 2024

Is your feature request related to a problem? Please describe.
My problem is that the external ip address of my ingress controller, is not one that is accessible via the internet. It is a local ip address, which is then exposed to the internet via DMZ.

NIC chooses its external IP address (or addresses) when setting the DNSEndpoint entries, however I would like to overwite the target attribute. You can choose other aspects of a DNSEndpoint in the virtualserver so it would be ideal to be able to choose the target or targets here also

Describe the solution you'd like
In the externalDNS struct in the virtualservers

externalDNS:
    enable: true
    target: 1.2.3.4 # Set public ip

Alternatively this

externalDNS:
    enable: true
    targets:
      - 1.2.3.4 # setting multiple targets
      - 5.6.7.8

I do not myself have a usecase for setting multiple targets so would be happy with one.

Describe alternatives you've considered
Using an ingress instead with an externaldns annotation which allows setting the target. This does work for me but I would much prefer to use VirtualServers

annotations: # on the ingress resource
    external-dns.alpha.kubernetes.io/target: "1.2.3.4"

Additional context
external-dns.alpha.kubernetes.io/target takes a comma separated list of targets so maybe this is sensible to follow, and have a list rather than a single target.

@j1m-ryan j1m-ryan added the proposal An issue that proposes a feature request label Mar 5, 2024
@sov-msaeed
Copy link

I am also very interested in this. right now we use custom targets which is a must to use VirtualServer instead of ingress. @j1m-ryan is there any plans to implement this ? and is there any workaround and still keep using VirtualServer ? Thanks a lot!

@j1m-ryan
Copy link
Author

Hi @sov-msaeed, no this has not been prioritised yet. Will tag @shaun-nx to have a look

@sov-msaeed
Copy link

sov-msaeed commented Dec 10, 2024

Thanks a lot ! right now the only workaround i found is not to enable externalDns from the Virtualserver definition at all. and I Create the DNSEndpoint manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal An issue that proposes a feature request
Projects
Status: Todo ☑
Development

No branches or pull requests

2 participants