apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: "netpol-namespace-selector"
spec:
  ingress:
  - from:
    - namespaceSelector:
        matchLabels:
          nslabel: second
  podSelector:
    matchLabels:
      id: app1
  policyTypes:
  - Ingress
