k8s v1.19.0
pod ip不是由cni告诉kubelet的,而是kubelet pleg基于cri得到。
pkg/kubelet/pleg/generic.go
Start -> relist -> updateCache(更新本地缓存,供其他流程使用)->
pkg/kubelet/kuberuntime/kuberuntime_manager.go
GetPodStatus(从最新pause容器获取pod ip)->
pkg/kubelet/kuberuntime/kuberuntime_sandbox.go
determinePodSandboxIPs(基于cri获取pod ip)->
pkg/kubelet/pleg/generic.go
getPodIPs(pause容器正常情况下才更新pod ip)
标签:ip,pleg,kubelet,pkg,pod,kuberuntime From: https://www.cnblogs.com/WJQ2017/p/18417893