Kubernetes NetworkPolicy

Asking for help? Comment out what you need so we can get more information to help you!

Hello All

I have used ingress for allow specific namespace for inbound. However, after I set the ingress. I couldn’t access from external server. How could I allow the specific namespace without blocking the external access?

Thanks

Cluster information:

Kubernetes version:
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS: Red Hat Enterprise Linux release 8.7 (Ootpa)
CNI and version: 0.3.1
CRI and version: 0.1.0

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

In which case do you need allow external access? If you route external traffic via ingress controller, then can you just add ingress controller to the allowed namespace list?