Ingress & NetworkPolicy

Outside requests enter through the Ingress controller, which ends TLS and routes by host and path. Inside, NetworkPolicy fences decide which pods may talk to which. Switch the policy mode, or press ▶ Guided tour.

Drag to rotate · click a part

An Ingress is a set of HTTP routing rules, by host name and path, to Services; an Ingress controller such as ingress-nginx reads them, terminates TLS with a certificate from a Secret, and forwards requests in. NetworkPolicy works inside the cluster: by default every pod accepts traffic from every other pod, but once a policy selects a pod, only traffic some policy allows gets in. The usual pattern is a default-deny policy plus narrow allow rules.