apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: default-isolate
  namespace: default
spec:
  podSelector: {}
  policyTypes:
    - Ingress
    - Egress
  ingress:
  - from:
    - namespaceSelector:
        matchLabels:
          nsname: network
  egress:
  - to:
    - namespaceSelector:
        matchLabels:
          nsname: network
