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
{{ message }}
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.
The result from the cni plugin will have list of IPs for every interface. If there is 1 IP then it could be either ipv6 or ipv4 depending on what is assigned to each interface. So techincally if only IPv6 address is assigned, this what will be picked by cri-containerd.
Thanks @abhi! In case CNI plugin return one IPv4 and IPv6 address for an interface, what is the rule to pick up the address for the pod? Is IPv4 be preferred? Thanks!
@jingax10 at this point it will be the first IP from the cni result. So essentially the ordering is defined by the cni plugin. Whatever it stamps as the first IP in the slice.
Is there a preference we need to consider here ?
Do you happen to know about reason for that convention ?
Mostly because there is a difference in the approach we took in cri using the go-cni library.
We used the result from the cni plugin as the source of truth as opposed to checking the ip of the interface inside the sandbox container.
From the code, it is not very obvious to me:
@abhi
The text was updated successfully, but these errors were encountered: