You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of Kubernetes 1.7 (kubernetes/kubernetes#42717), we can now retrieve the host IP directly from the downward API via the status.hostIP field, without needing to rely on the spec.nodeName field, which isn't addressable in all Kubernetes environments (including minikube -- #130).
We should update our example configs in this repo to start using status.hostIP instead of spec.nodeName, but we also need to figure out a way to ensure backwards compatibility with older versions of Kubernetes, either by versioning the config files or doing something smarter with environment variable fallback.
The text was updated successfully, but these errors were encountered:
@zyf0330 I believe this done in the cloud-provider code. Each cloud provider (aws, gce, etc) is responsible for providing the instance metadata. In the case of AWS, the the address would come from the aws instance metadata.
First reported by @dlaidlaw.
As of Kubernetes 1.7 (kubernetes/kubernetes#42717), we can now retrieve the host IP directly from the downward API via the
status.hostIP
field, without needing to rely on thespec.nodeName
field, which isn't addressable in all Kubernetes environments (including minikube -- #130).We should update our example configs in this repo to start using
status.hostIP
instead ofspec.nodeName
, but we also need to figure out a way to ensure backwards compatibility with older versions of Kubernetes, either by versioning the config files or doing something smarter with environment variable fallback.The text was updated successfully, but these errors were encountered: