The NetworkPolicies are not applicable on the Port Forwarding feature.
Issue
- Does
oc port-forwardcommand get affected by NetworkPolicies? - Denied traffic between projects by adding NetworkPolicies still connections can be established using
oc port-forwardcommand. - How to restrict users to use
oc port-forwardutility?
Environment
- Red Hat OpenShift Container Platform 3.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.