>_ IzzyLab

Topic breakdown

A NetworkPolicy works on a whitelist principle: as soon as a pod matches spec.podSelector and policyTypes includes Ingress, all inbound traffic to it is denied by default, and it's allowed only by explicit rules in spec.ingress. Each rule is a list element with a from block, where sources are described via podSelector.matchLabels (by pod labels), namespaceSelector, or ipBlock. Opening one source doesn't lift the deny on the rest — default-deny still applies to everyone who didn't match a rule.

What's checked

  1. manifest is valid (kubeconform)
  2. kind = NetworkPolicy
  3. ingress allowed from app: web

What it looks like