Architecture: Network Policy
Overview
Kubernetes NetworkPolicy resources that enforce namespace-level ingress/egress allow lists across the pal-e cluster. All policies are defined in
terraform/network-policies.tf and applied via tofu.Key Resources
netpol_keycloak— controls ingress to the keycloak namespacenetpol_postgres— controls ingress to the postgres namespacenetpol_harbor— controls ingress to the harbor namespacenetpol_minio— controls ingress to the minio namespace
Conventions
- Every namespace that needs to reach another must be explicitly listed in the target's ingress allow list.
- Manual
kubectl patchadditions are infrastructure drift — they must be codified innetwork-policies.tfbefore the nexttofu apply. - New service onboarding must include NP updates as part of the service onboarding SOP.