github.com/cilium/cilium@v1.16.2/test/k8s/manifests/netpol-namespace-selector.yaml (about)

     1  apiVersion: networking.k8s.io/v1
     2  kind: NetworkPolicy
     3  metadata:
     4    name: "netpol-namespace-selector"
     5  spec:
     6    ingress:
     7    - from:
     8      - namespaceSelector:
     9          matchLabels:
    10            nslabel: second
    11    podSelector:
    12      matchLabels:
    13        id: app1
    14    policyTypes:
    15    - Ingress