diff --git a/plugin/kubernetes/object/endpoint.go b/plugin/kubernetes/object/endpoint.go index 9a5347a9b..f504904a8 100644 --- a/plugin/kubernetes/object/endpoint.go +++ b/plugin/kubernetes/object/endpoint.go @@ -178,6 +178,9 @@ func EndpointSliceV1beta1ToEndpoints(obj meta.Object) (meta.Object, error) { } for _, end := range ends.Endpoints { + if end.Conditions.Ready == nil || !*end.Conditions.Ready { + continue + } for _, a := range end.Addresses { ea := EndpointAddress{IP: a} if end.Hostname != nil {