github.com/looshlee/cilium@v1.6.12/examples/policies/l3/fqdn/fqdn.yaml (about) 1 apiVersion: "cilium.io/v2" 2 kind: CiliumNetworkPolicy 3 metadata: 4 name: "to-fqdn" 5 spec: 6 endpointSelector: 7 matchLabels: 8 app: test-app 9 egress: 10 - toEndpoints: 11 - matchLabels: 12 "k8s:io.kubernetes.pod.namespace": kube-system 13 "k8s:k8s-app": kube-dns 14 toPorts: 15 - ports: 16 - port: "53" 17 protocol: ANY 18 rules: 19 dns: 20 - matchPattern: "*" 21 - toFQDNs: 22 - matchName: "my-remote-service.com"