Connections between host-network and normal pods failing after creating NetworkPolicy

Solution Verified - Updated -

Issue

  • The host-network pods can't connect to normal pods running on a different node when the allow-same-namespace or deny-by-default NetworkPolicy is created while the pods are in the same namespace.
  • The issue resolves only after creating allow-from-hostnetwork NetworkPolicy which allows ingress traffic from the namespace with the label policy-group.network.openshift.io/host-network.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 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