kubeadm init refuses to use link-local unicast IPs as --apiserver-advertise-address #1272
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature
Categorizes issue or PR as related to a new feature.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
sig/node
Categorizes an issue or PR as relevant to SIG Node.
Is this a BUG REPORT or FEATURE REQUEST?
/kind bug
Versions
kubeadm version (use
kubeadm version
):v1.12.2
What happened?
I'm setting up a VM-based test harness that uses kubeadm to set up a small k8s cluster. The VMs are configured to set up IPv4 link-local addresses and use multicast DNS to find each other. Because of the way the VMs are set up, I have to override --apiserver-advertise-address to make k8s use the LAN interface for node communication, because it's not the default interface.
Unfortunately, kubeadm checks
.IsGlobalUnicast()
on the passed in address, so the link-local IPv4 address is rejected even though it's a valid way to set up a small cluster.What you expected to happen?
kubeadm init
should accept link-local IPv4 or IPv6 addresses, if they're specified explicitly on the commandline.How to reproduce it (as minimally and precisely as possible)?
kubeadm init --apiserver-advertise-address=169.254.152.255
The text was updated successfully, but these errors were encountered: