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

Support Gloo VirtualService as an Endpoint Source #1435

Closed
ilackarms opened this issue Feb 19, 2020 · 15 comments · Fixed by #1693
Closed

Support Gloo VirtualService as an Endpoint Source #1435

ilackarms opened this issue Feb 19, 2020 · 15 comments · Fixed by #1693
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@ilackarms
Copy link

What would you like to be added:

Support Gloo VirtualService objects as a source of Endpoints for creating DNS records.

Why is this needed:

Because Gloo is great! And automatic DNS provisioning is something our users are requesting.

@ilackarms ilackarms added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 19, 2020
@Raffo
Copy link
Contributor

Raffo commented Feb 22, 2020

I think that for custom CRDs, the same reasoning made in #1403 (comment) applies. It would be great to have a pluggable way or any other proposal to make CRDs used as sources be pluggable.

@ilackarms
Copy link
Author

@Raffo how do you propose these CRDs be made pluggable? From reading the Contour and Istio code, it seems that there's a bit of domain-specific knowledge in each implementation.

@szuecs
Copy link
Contributor

szuecs commented Feb 26, 2020

I tried to summarize the issue raised by @Raffo in #1447 and added my opinion on that, too.

@Raffo
Copy link
Contributor

Raffo commented Feb 26, 2020

@ilackarms I think we can totally discuss this issue in #1447 by @szuecs .

@gigi-at-zymergen
Copy link

We are using Gloo in EKS, and I think we might be able to use the CRD source as documented at https://github.com/kubernetes-sigs/external-dns/blob/master/docs/contributing/crd-source.md .

I can certainly apply the dnsendpoints.externaldns.k8s.io CRD manifest and adjust our external-dns RBAC and source, but am a little unclear on how we might supply aws provider specific information like indicating we want an alias Route53 record pointed at a service NLB.

We have a gateway-proxy k8s LoadBalancer service pointing at Gloo, which is an AWS NLB. We would like to specify Route53 A record aliases pointing at the service NLB. I was thinking we could use the spec.endpoints.providerSpecific field on the endpoint manifest to indicate an alias record, but currently not clear on what that would look like. Any guidance ?

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 17, 2020
@seanmalloy
Copy link
Member

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 18, 2020
@bradenwright
Copy link

Any update on this. @gigi-at-zymergen were you able to get anything to work. Curious b/c right now this is the only thing having me use Istio gateways over trying Gloo virtualservices. I'd be down for a work around or do I need to be patient and wait for #1558 to be resolved

@gigi-at-zymergen
Copy link

@bradenwright we did end up getting the CRD source to work.

  • Created the external-dns dnsendpoints.externaldns.k8s.io CRD in our cluster
  • Updated our external-dns container with the --source=crd arg
  • Wrote a utility that generates external-dns dnsendpoint resources for us and we auto apply them with Flux

An example of dnsendpoint yaml spec we generate looks like the following:

apiVersion: externaldns.k8s.io/v1alpha1
kind: DNSEndpoint
metadata:
  name: zowie
  labels:
    environment: development
  namespace: tools
spec:
  endpoints:
  - dnsName: zowie.mydomain.com
    recordTTL: 60
    recordType: CNAME
    providerSpecific:
    - name: alias
      value: "true"
    targets:
    - *****************.elb.us-west-2.amazonaws.com

The target is the AWS NLB associated with our gateway-proxy service. The thing that threw me for a bit of a loop initially was that even though it says recordType: CNAME, it creates an A record alias.

@mrballcb
Copy link

I wonder if that's because you're setting alias=true in the providerSpecific section. Does it behave differently if you set the recordType to A instead of CNAME? Does it behave differently if you don't set the alias=true setting?

@gigi-at-zymergen
Copy link

recordType = "A" failed validation with a string target. It expects an IP.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 26, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Dec 26, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants