Container and Kubernetes security, topic 40 of 70
Network policies
By default every pod in a cluster can reach every other. Network policies change that: start with a default deny in each namespace, then allow each flow explicitly, such as the frontend to the API on its port and the API to the database.
They need a network plugin that enforces them, such as Calico or Cilium. A service mesh adds mutual TLS and rules by identity on top.
On Opsfolk
- CKA practice: Advanced Kubernetes administrationQuiz, 40 questionsSigned-in members
Elsewhere
- Network policies, KubernetesOfficial