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 for ExternalName #1

Open
tobberharley opened this issue Nov 4, 2020 · 3 comments
Open

Support for ExternalName #1

tobberharley opened this issue Nov 4, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@tobberharley
Copy link

Resolve services of type ExternalName bases on the externalName or externalIPs:


kind: Service
apiVersion: v1
metadata:
name: my-service
namespace: my-namespace
spec:
type: ExternalName
externalName: other-service.other-namespace.svc.cluster.local
externalIPs:
- 192.168.10.10

@networkop networkop added the enhancement New feature or request label Nov 6, 2020
@networkop
Copy link
Collaborator

hey @torbenhinge I've got some time now to look at this. Can you elaborate your usecase?
My understanding is that externalName is used for external lookups from inside the cluster, as described here, so I don't see how this can be useful for outside->in lookups

@svvac
Copy link

svvac commented Feb 3, 2021

I suppose exposed ExternalName could just be CNAMEs to the spec.externalName value.

The example OP provided uses an internal DNS but I believe this is not the intended use case of the feature

@morganchristiansson
Copy link
Contributor

morganchristiansson commented Apr 8, 2021

Just having a look thru open issues... I'm also confused by this request.

As an example https://github.com/kubernetes-sigs/external-dns supports service with type: ExternalName. But only when using the annotation external-dns.alpha.kubernetes.io/hostname: tenant1.example.org,tenant2.example.org, it adds an alias/CNAME essentially. https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/externalname.md

Supporting hostname annotation to set CNAME for services with type: LoadBalancer would be useful. If we can support the same annotation as external-dns uses or add our own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

4 participants