You have a corporate portal ( k8s service portal in production namespace)
You need to create Cilium NetworkPolicy api-access provide these requirements
the portal APIs:
/public/* - open all method from all cluster
/private/* - open all method from all in finance namespace
for checking access you can use curl from pod in the finance namespace or external namespace
like this:
k exec -n finance finance -- curl http://portal.production/private/api123 --connect-timeout 1
k exec -n finance finance -- curl http://portal.production/public/api123 --connect-timeout 1
k exec -n external external -- curl http://portal.production/private/api123 --connect-timeout 1
k exec -n external external -- curl http://portal.production/public/api123 --connect-timeout 1