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 ExternalName type service sync to consul #201

Open
povils opened this issue Feb 10, 2020 · 8 comments
Open

Support ExternalName type service sync to consul #201

povils opened this issue Feb 10, 2020 · 8 comments
Labels
area/sync Related to catalog sync type/enhancement New feature or request

Comments

@povils
Copy link

povils commented Feb 10, 2020

Hi everyone!
Thanks for the tool, it's awesome!
Is there a reason why consul-k8s doesnt support ExternalName type service sync to Consul?
https://www.consul.io/docs/platform/k8s/service-sync.html#kubernetes-service-types

@BeenzSyed BeenzSyed added type/enhancement New feature or request area/sync Related to catalog sync labels Feb 19, 2020
@adilyse
Copy link
Contributor

adilyse commented Feb 19, 2020

Hello! Could you tell us a bit more about your use case for registering external name services? We've generally assumed that if folks are using services external to Kubernetes that they'd register them directly with Consul, so we'd like to hear more about your situation. Thanks!

@adilyse adilyse added the waiting-reply Waiting on the issue creator for a response before taking further action label Feb 19, 2020
@povils
Copy link
Author

povils commented Feb 21, 2020

Hey! Than you for the response :)
Our use case is very simple: we want to sync ingress routes to consul. Basically what we want is to have a kubernetes resource (service, ingress routes, configmap?) inside application's chart that after the chart installation we would have automatically registered application in consul which points to ingress controller balancer. That's why I thought service with type externalname was a logical way to do it because consul-k8s already deals with kubermetes services.

@povils
Copy link
Author

povils commented Feb 28, 2020

@adilyse Does my answer satisfies your question ?:)

@lkysow lkysow removed the waiting-reply Waiting on the issue creator for a response before taking further action label Mar 2, 2020
@lkysow
Copy link
Member

lkysow commented Mar 2, 2020

Thanks Povilas, that makes sense. We'll put this request on our backlog.

@lkysow
Copy link
Member

lkysow commented Sep 21, 2020

To Do: Can we register services in Consul with a DNS name? I think we might need an IP. Edit: yes we just set the DNS address in the Address field. If users are leveraging Consul DNS then they need to set up DNS recursers to actually resolve that address (https://www.consul.io/docs/agent/options.html#_recursor).

@Lysholm
Copy link

Lysholm commented Mar 24, 2021

Another 👍 for this.

I want to be able to register external services only one place. For connect i currently have to register services in a manifest (a terminating gateway) and "directly with consul" through terraform. If i could just create manifest files instead that would be a lot easier.

@david-yu
Copy link
Contributor

david-yu commented Apr 2, 2021

Hi @povils It looks like this is a dupe of #5, would you agree? If so, I can close this and you could upvote that issue!

@VictorBac
Copy link

Hi @david-yu, that's not the same thing because not all service will have an ingress.

For example we are using knative, and it generates services of type ExternalName.
And I need those services to be registered automatically !

knative don't use ingress, it exposes a global service on a nodePort, and then do the redirect/reverse-proxy itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sync Related to catalog sync type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants