apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: cross-ns-{{randInteger 1 1000000}}
spec:
  podSelector:
    matchLabels:
      label1: foo-{{randInteger 1 5}}
  policyTypes:
  - Ingress
  ingress:
  - from:
    - podSelector:
        matchLabels:
          label1: foo-{{randInteger 1 5}}
      namespaceSelector:
        matchLabels:
          ns_label: bar-{{randInteger 1 4}}
