github.com/looshlee/cilium@v1.6.12/examples/policies/kubernetes/namespace/kubedns-policy.yaml (about) 1 apiVersion: "cilium.io/v2" 2 kind: CiliumNetworkPolicy 3 metadata: 4 name: "allow-to-kubedns" 5 spec: 6 endpointSelector: 7 {} 8 egress: 9 - toEndpoints: 10 - matchLabels: 11 k8s:io.kubernetes.pod.namespace: kube-system 12 k8s-app: kube-dns 13 toPorts: 14 - ports: 15 - port: '53' 16 protocol: UDP