Problem Statement
What do Kubernetes Network Policies primarily control?
Explanation
Network policies define which pods can talk to which destinations and on which ports. They reduce lateral movement inside the cluster and support a Zero Trust posture.
Code Solution
SolutionRead Only
spec: podSelector: {}; ingress: - from: - podSelector: {matchLabels: app:web} ports: - port: 5432