allow-dns-access.yaml 407 B

123456789101112131415161718192021
  1. apiVersion: networking.k8s.io/v1
  2. kind: NetworkPolicy
  3. metadata:
  4. name: allow-dns-access
  5. namespace: default
  6. spec:
  7. podSelector:
  8. matchLabels: {}
  9. policyTypes:
  10. - Egress
  11. egress:
  12. - to:
  13. - namespaceSelector:
  14. matchLabels:
  15. kubernetes.io/metadata.name: kube-system
  16. podSelector:
  17. matchLabels:
  18. k8s-app: kube-dns
  19. ports:
  20. - protocol: UDP
  21. port: 53