apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: web-allow-frontend namespace: team-a spec: podSelector: matchLabels: app: web policyTypes: - Ingress ingress: - from: - podSelector: matchLabels: role: frontend ports: - protocol: TCP port: 80