-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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
More flexible way of setting external address #16706
Comments
We went back-and-forth on On Mon, Nov 2, 2015 at 6:26 PM, Ilya Dmitrichenko [email protected]
|
I see. Well, I don't think |
Happy to look at a PR for this. |
@resouer I can't promise speedy reviews, but you are welcome to take a stab at this. @errordeveloper is there no way you can run a script to discover the correct address and then pass it in? I'm just trying to think of ways to avoid adding more flags. |
@lavalamp I am also hesitate to add a more flags. So watch this to see if any work around ... |
@lavalamp I am using a script already:
|
However, I just thought it'd be much nicer to have one of the these two: a) Allow passing DNS name instead of IP address:
b) Allow passing interface name instead of exact IP address:
Although, in both cases I'm not sure why I would have to pass all these flags with the same value an a shortcut would be even much nicer! |
Of course, I can stick with what I have. I might make a pull-request to add a helper script in the upstream container image, if people think it's appropriate. |
Personally, I prefer your work around than adding a new flag :) |
Yeah, I prefer your work-around to more flags or more functionality for the existing flags. |
Closing, as a high-level problem like this should probably be solved in |
Currently one can set external address of the master either via a specific IP or rely on very opinionated default interface selection mechanism (
util.ChooseHostInterface()
). It would be very handy to override this via exact interface name as well as DNS.There are currently two flags,
--advertise-address
and--external-hostname
. It is a little surprising that setting--external-hostname
still doesn't affect what the external address will be, however may be all that's needed is--external-interface
...I am running apiserver in a container on Weave and it's Docker's
eth0
thatutil.ChooseHostInterface()
currenly favours, as that's what has the default route, but that's not my cross-host network. Weave addsethwe
interface and I'd like to use whatever IP that gets. Right now I have to add a wrapper which gets IP ofethwe
and passes it to--advertise-address
, which is in fact just a call tohostname -i
(see weaveworks/weave#68). Perhaps, a simple mechanism, likehostname -i
, is what would work more like other programs out there?The text was updated successfully, but these errors were encountered: