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

Add support for external-dns integration #915

Open
CygnusHyoga opened this issue Feb 20, 2024 · 6 comments
Open

Add support for external-dns integration #915

CygnusHyoga opened this issue Feb 20, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@CygnusHyoga
Copy link

CygnusHyoga commented Feb 20, 2024

It would be great to add gravity dns as an external-dns provider, to be able to automatically manage records for external kubernetes services.

External-dns project:
https://github.com/kubernetes-sigs/external-dns

Thanks.

@CygnusHyoga
Copy link
Author

External-dns project support coredns integration with etcd (similar implementation of gravity).

https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/coredns.md

It's posible this provider works with gravity? Thanks in advance.

@CygnusHyoga
Copy link
Author

CygnusHyoga commented Feb 21, 2024

I tested without luck. I tried to add to external-dns helm chart:

env:
  - name: TZ
    value: Europe/Madrid
  - name: ETCD_URLS
    value: http://192.168.66.254:2380/gravity/
provider: coredns

extraArgs:
  - --source=service
  # - --source=ingress
  - --domain-filter=example.com

Error:

"level":"warn","ts":"2024-02-21T20:37:12.10568+0100","logger":"etcd-client","caller":"[email protected]/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc000365880/192.168.66.254:2380/gravity/","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"error reading server preface: EOF\""}
time="2024-02-21T20:37:12+01:00" level=fatal msg="context deadline exceeded"

The etcd is working via http or https? The schema of coredns is standard or custom? Thanks.

@BeryJu
Copy link
Owner

BeryJu commented Feb 21, 2024

While gravity uses etcd and can use CoreDNS as a handler for a zone, the way gravity uses etcd is not inspired by coredns and as such probably not compatible

@CygnusHyoga
Copy link
Author

Thanks BeryJu for the response.

It would be great to add support for external-dns at some point, I think it is a factor that many people would be interested in.

@CygnusHyoga
Copy link
Author

CygnusHyoga commented Mar 9, 2024

Maybe adding support for:

May fix problem for integration with third party tools like: acme certificates with dns01 validation like acme.sh, lego, certbot, etc, and tools like external-dns and others.

One benefits it's a standard and don't have to develop custom integration with this or other tools.

@BeryJu
Copy link
Owner

BeryJu commented May 24, 2024

The easiest way to implement it would most likely be https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/webhook-provider.md

@BeryJu BeryJu added the enhancement New feature or request label May 24, 2024
@BeryJu BeryJu changed the title [Feature Request] Add support for external-dns integration Add support for external-dns integration May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants