apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: netpolicy-allowdns
spec:
  podSelector:
    matchLabels: {}
  egress:
  - to:
    - namespaceSelector:
       {}
    ports:
    - protocol: TCP
      port: 53
    - protocol: UDP
      port: 53

  policyTypes:
  - Egress
