-
Notifications
You must be signed in to change notification settings - Fork 716
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
kubeadm unable to select an IP from default routes. #2604
Comments
Hi. All kubernetes component IPs can be configured with the kubeadm API and with patches. If you do not pass the custom IPs all of them use the same default route detection and they will fail in your case. That is how k8s is designed, so instead of setting the IP per every component best to make the default route IP detection available on the host. /kind support |
Thanks for your reply. But it's confusing since run |
Most kubeadm commands dynamically populate a config in memory and IPs are part of the config. The whole feature "configure all components with custom IPs" is already possible...But it is very messy for the user. Instead you can use the 'ip route' command to create a route that goes to any IP that you want..This is what i would like to see documented in the docs. And contributions for that are welcome. |
Thanks again. So use the patches or change the routing table, both should fix the complain. Actually I used Closing the issue for now. |
Can you provide the steps to fix the route issue and bypass the problem? |
I already post the command and route table above. BTW, I'm not sure my workaround is suitable for your situation, please evaluate it then use at your own risk.(it may breaks your machine's network)
Recover command(work for me only)
|
two methods:
|
WIP docs to direct users to setting up default routes and not using the IP flags in k8s components, unless really needed: xref #2604 (comment) |
What keywords did you search in kubeadm issues before filing this one?
Similar issues found, but all of them are closed.
#1156
#2323
kubernetes/kubernetes#95425
kubernetes/kubernetes#95779
BUG REPORT
Versions
Environment:
What happened?
kubeadm join/config command not working properly.
after delete the default route table, kubeadm works properly
tunnat is the device for outside Internet access, thus I have to pre-download all images over Internet and delete the tunnat route, then I can run kubeadm join and other subcommands.
What you expected to happen?
kubeadm should work on such routing table, or give us some other option to set the IP manually.
How to reproduce it (as minimally and precisely as possible)?
Anything else we need to know?
The text was updated successfully, but these errors were encountered: