123456789101112131415161718192021 |
- apiVersion: networking.k8s.io/v1
- kind: NetworkPolicy
- metadata:
- name: allow-dns-access
- namespace: default
- spec:
- podSelector:
- matchLabels: {}
- policyTypes:
- - Egress
- egress:
- - to:
- - namespaceSelector:
- matchLabels:
- kubernetes.io/metadata.name: kube-system
- podSelector:
- matchLabels:
- k8s-app: kube-dns
- ports:
- - protocol: UDP
- port: 53
|