-
Notifications
You must be signed in to change notification settings - Fork 416
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
Add support for domain name as advertise address #33
Comments
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Looks like this is being solved, at least partially, by the introduction of Even more work is being done to support HA masters here: kubernetes/kubernetes#58261 And the progress is being tracked here: kubernetes/kubeadm#261 |
Setting |
I second this. It is mandatory for me to specify IP address in "advertiseAddress", and when I put a hostname resolved by DNS in controlPlaneEndpoint in kubeadm, it still fails if IP address changes. Anything we can do? |
This is an insane requirement. Such a parameter should just accept a hostname as well. My current workaround is;
FAKE_IP=127.33.22.11
REAL_IPS_OR_HOSTNAMES="127.0.0.1 $(dig +short api2)"
ipvsadm -A -t $FAKE_IP:6443
for ip in $REAL_IPS; do
ipvsadm -a -t $FAKE_IP:6443 -r $ip:6443 -m
done
kube-apiserver \
--advertise-address ${FAKE_IP} \
... |
Hmm 🤔
.. better choose an IP address out of this range. the rule above doesn't say anything about multicast ranges. |
is it still true that apiserver advertise address must be IP? i'm curious that why it cannot be hostname? what difficulity will be face if use hostname? |
Is there any reason not to allow an API server advertising a domain name rather than just an IP address?
This would be useful when you want to have multiple masters behind a loadbalancer and using the IP address is not suitable, for example in the case of AWS ELB.
Please correct me if I'm wrong here, but from what I can tell the bind address option seems to be the address which the API server is going to listen on while the advertise address is what it is telling other components to use for communication.
The text was updated successfully, but these errors were encountered: