mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 02:06:23 +00:00
FetchInitConfigurationFromCluster always called SetAPIEndpointDynamicDefaults, which invokes ChooseAPIServerBindAddress and requires a default route on the host. Worker nodes joining the cluster don't need a LocalAPIEndpoint and may legitimately have no default route, causing kubeadm join to fail with: ``` unable to fetch the kubeadm-config ConfigMap: unable to select an IP from default routes. ``` Add a skipAPIEndpoint parameter to SetInitDynamicDefaults and pass `!getAPIEndpoint` from FetchInitConfigurationFromCluster, so the endpoint defaulter is bypassed when the caller did not request the endpoint (worker join, non-control-plane reset/certs/upgrade paths). Signed-off-by: Seena Fallah <seenafallah@gmail.com>