Network policy and admission
Different enforcement points
Admission controls API requests after authentication and authorization, before persistence for relevant writes. NetworkPolicy controls selected Pod network connections at supported layers; it does not decide API verbs. Pod Security Admission (PSA) applies Pod Security Standards (PSS) through namespace configuration. A supporting network plugin must enforce NetworkPolicy.
Read connectivity as two gates
For ordinary Pod-to-Pod traffic in this classroom model, if the source is isolated for egress its egress policy must allow the connection; if the destination is isolated for ingress its ingress policy must also allow it. Policies are additive within a direction; an empty allowance for an isolated direction blocks new connections unless another policy allows them. Return traffic for allowed connections is implicitly allowed.
Admission evidence
Kubernetes v1.35 provides Baseline and Restricted PSS profiles, as well as an unrestricted profile called Privileged. A static namespace label fragment for a planned restrictive policy is pod-security.kubernetes.io/enforce: restricted with pod-security.kubernetes.io/enforce-version: v1.35. Warn and audit modes provide signals rather than blocking. An image signature requirement needs a separate configured verification control; PSA does not verify signatures.
Configuration is not enforcement
A NetworkPolicy object may exist without a compatible network plugin. A successful admission check is not proof of running isolation and does not retroactively fix existing Pods. Plan required DNS, service and monitoring connectivity before restricting traffic. Validate labels, selectors, namespace boundaries, plugin support and actual behavior in an approved test environment.
Practice a connectivity review
A reporting Pod needs its database and DNS, not arbitrary outbound access. In an offline diagram, mark source egress and destination ingress for database traffic, then identify the separately required DNS path. If plugin support is unknown, record unverified enforcement rather than declare the database protected. Revisit chapter 12 network segmentation.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Network policy and admission — knowledge check
Review container trust, runtime, access and telemetry.
What does PSA evaluate?
If isolated source egress permits but isolated destination ingress denies, what is the modeled result?
What is needed for NetworkPolicy enforcement?
Which PSA mode blocks relevant violating requests?
How should missing plugin evidence be reported?