Service with selector removed is causing wrong haproxy.config in OpenShift Container Platform 4
Issue
- When removing the
selector
of aservice
exposed viaroute
, restarting pods and adding theselector
back, thehaproxy.config
contains invalid backend endpoints. - Removing the
selector
from aservice
fails to remove the backend configuration inhaproxy.config
of therouter
. This is causing specific requests to fail as they are routed to a backend that does not exist.
Environment
- Red Hat OpenShift Container Platform (OCP) 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.