github.com/looshlee/cilium@v1.6.12/examples/kubernetes-dns/dns-port.yaml (about) 1 apiVersion: "cilium.io/v2" 2 kind: CiliumNetworkPolicy 3 metadata: 4 name: "fqdn" 5 spec: 6 endpointSelector: 7 matchLabels: 8 org: empire 9 class: mediabot 10 egress: 11 - toFQDNs: 12 - matchPattern: "*.twitter.com" 13 toPorts: 14 - ports: 15 - port: "443" 16 protocol: TCP 17 - toEndpoints: 18 - matchLabels: 19 "k8s:io.kubernetes.pod.namespace": kube-system 20 "k8s:k8s-app": kube-dns 21 toPorts: 22 - ports: 23 - port: "53" 24 protocol: ANY 25 rules: 26 dns: 27 - matchPattern: "*"