-
Kubernetes Submit Queue authored
Automatic merge from submit-queue kubenet: SyncHostports for both running and ready to run pods. This fixes the race that happens in rktnetes when pod B invokes 'kubenet.SetUpPod()' before another pod A becomes actually running. The second 'kubenet.SetUpPod()' call will not pick up the pod A and thus overwrite the host port iptable rules that breaks pod A. This PR fixes the case by listing all 'active pods' (all non-exited pods) instead of only running pods. Fix https://github.com/kubernetes/kubernetes/issues/27975 Originally discussed in https://github.com/kubernetes/kubernetes/pull/27914#issuecomment-228140108 cc @euank @freehan @dcbw
1070a518