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

[dns] resolve service using internal (short) name? #9

Open
austinnichols101 opened this issue Nov 15, 2018 · 6 comments
Open

[dns] resolve service using internal (short) name? #9

austinnichols101 opened this issue Nov 15, 2018 · 6 comments
Labels
enhancement This issue is a feature request

Comments

@austinnichols101
Copy link

Given a svc with the following FQDN:

foo.default.svc.cluster.local

is there a configuration option that will allow me to resolve using the "short" name:

foo.default

@cppforlife
Copy link
Contributor

cppforlife commented Nov 15, 2018 via email

@austinnichols101
Copy link
Author

I can work around it by specifying a dns search domain on the local host. A name conflict with a public domain is possible, but is typically the exception and not the rule.

As background, I have been using telepresence with vpn-tcp mode which allows this type of lookup. This allows me to use the same naming that the pods use within the cluster.

@cppforlife
Copy link
Contributor

@austinnichols101 do you typically configure it to deal with shortest names as well (just the svc name, eg foo)?

@austinnichols101
Copy link
Author

@cppforlife no, typically I use the svc name + namespace.

@cppforlife
Copy link
Contributor

all righty, i ll give it a try next week.

@drnic
Copy link
Contributor

drnic commented Nov 16, 2018

@austinnichols101 you can also setup bespoke routes via VirtualService resource https://starkandwayne.com/blog/adding-a-custom-domain-for-knative-services/

@cppforlife cppforlife added the enhancement This issue is a feature request label Mar 27, 2019
@cppforlife cppforlife changed the title Resolve service using internal (short) name? [dns] resolve service using internal (short) name? May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue is a feature request
Projects
None yet
Development

No branches or pull requests

3 participants