Skip to content

Ability to use specific annotations with specific edns instance #5061

@lexfrei

Description

@lexfrei

What would you like to be added:
An option to mark annotations to be used with specific instance of edns.

Why is this needed:
In some cases, we need to use not just multiple providers, but different targets in each.
For example, I wanna create public dns and private dns for the same ingress to simplify routing.
Currently, I have these annotations:

    external-dns.alpha.kubernetes.io/target: "uuid.cfargotunnel.com"
    external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"

but in the future I wanna use it like this:

    external-dns.alpha.kubernetes.io/target-cf: "uuid.cfargotunnel.com"
    external-dns.alpha.kubernetes.io/cloudflare-proxied-cf: "true"

    # or completely remove this to use ip from ingress status
    external-dns.alpha.kubernetes.io/target-local: "10.0.66.6"

Not just postfix can be used. The domain customization or prefix is fine too.

This looks very useful for multi instance usage of edns

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions