This repository has been archived by the owner on Jul 30, 2021. It is now read-only.
Add --advertise-address
to bootstrap-apiserver manifest
#453
Labels
Milestone
In the case of vagrant/virtualbox (hack/multi-node) the temporary apiserver is advertising itself on the incorrect interface (with IP 10.0.2.15).
The default interface on virtualbox machines isn't actually routable between nodes, so what ends up happening is that the api-server ends up advertising itself on an IP that it cant be reached. Similar scenarios could occur in environments with multiple ethernet devices (not just virtualbox).
A workaround is to set the
--advertise-address
to the downward api pod-ip. This means that at runtime the kubelet will populate the same host address that the kubelet is using (because hostnetwork=true, this means the same host address the kubelet has resolved, or been told to use).Hopefully we can just drop the same thing into the static pod manifest:
https://github.com/kubernetes-incubator/bootkube/blob/master/pkg/asset/internal/templates.go#L165
https://github.com/kubernetes-incubator/bootkube/blob/master/pkg/asset/internal/templates.go#L187-L191
The text was updated successfully, but these errors were encountered: