Is it expected that endpoints remain in the service when the selector is removed in OpenShift Container Platform 4

Solution Verified - Updated -


  • When removing the selector from a service, the endpoints remain there and are not being removed. Is that behavior expected?
  • Running oc patch service foobar-service -p "{\"spec\":{\"selector\": null}}" won't remove the ep from the service.


  • Red Hat OpenShift Container Platform (OCP) 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content