diff --git a/test/e2e/framework/metrics/metrics_proxy.go b/test/e2e/framework/metrics/metrics_proxy.go index ae46fff4ea3..afd04db61ab 100644 --- a/test/e2e/framework/metrics/metrics_proxy.go +++ b/test/e2e/framework/metrics/metrics_proxy.go @@ -50,6 +50,9 @@ func SetupMetricsProxy(c clientset.Interface) error { } var foundComponents []componentInfo for _, pod := range podList.Items { + if len(pod.Status.PodIP) == 0 { + continue + } switch { case strings.HasPrefix(pod.Name, "kube-scheduler-"): foundComponents = append(foundComponents, componentInfo{