IngressRouteUDP #8567
-
If I would like to expose CoreDNS as a public DNS server - how might I go about enabling this? The manifest I thought I would like to use (/var/lib/rancher/k3s/server/manifests/dns-ingress.yaml) might look something like this: apiVersion: traefik.io/v1alpha1
However, this results in the following error: error: resource mapping not found for name: "dns-ingress" namespace: "kube-system" from "/var/lib/rancher/k3s/server/manifests/dns-ingress.yaml": no matches for kind "IngressRouteUDP" in version "traefik.io/v1alpha1" NOTE: If it's too early to use IngressRouteUDP, not possible to enable it, or preferable to route public internet UDP DNS queries to CoreDNS another way... please let me know / point me in the right direction TYIA |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I would just expose it as a LoadBalancer type Service. There is no value in running bare TCP or UDP services through the Ingress controller. The whole point of Ingress is to do TLS offload and/or request routing, and you don't want any of that here. |
Beta Was this translation helpful? Give feedback.
-
Thank you @brandond. Also thank you for working on adding the CoreDNS *.override and *.server patterns early this year which facilitate actually using kube-dns in k3s as an outward facing service in the first place. I will adopt the LoadBalance pattern suggested. |
Beta Was this translation helpful? Give feedback.
I would just expose it as a LoadBalancer type Service. There is no value in running bare TCP or UDP services through the Ingress controller. The whole point of Ingress is to do TLS offload and/or request routing, and you don't want any of that here.