Skip to content
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

podIPs order match node IP family preference (Downward API) #103307

Merged
merged 1 commit into from Jul 7, 2021

Commits on Jul 6, 2021

  1. sort and filter exposed Pod IPs

    runtimes may return an arbitrary number of Pod IPs, however, kubernetes
    only takes into consideration the first one of each IP family.
    
    The order of the IPs are the one defined by the Kubelet:
    - default prefer IPv4
    - if NodeIPs are defined, matching the first nodeIP family
    
    PodIP is always the first IP of PodIPs.
    
    The downward API must expose the same IPs and in the same order than
    the pod.Status API object.
    Antonio Ojea committed Jul 6, 2021
    Copy the full SHA
    a7469cf View commit details
    Browse the repository at this point in the history