Network Policy is not working between namespaces in RHOCP 4.x

Solution Verified - Updated -

Issue

  • Network Policy doesn't work between the namespaces until proper labels are applied.
  • Unable to connect to ClusterIP which is present in the namespace where network policy is applied:
$ oc rsh httpd-78bddd99bc-dt5xf
sh-4.4$ curl 10.0.0.0:8080
^C
sh-4.4$ exit

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.x

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