https://rancher.com/ logo
Title
g

gray-florist-76480

11/14/2022, 8:44 PM
Hey! I wanted to run some TCP and UDP service in my home cluster and expose one of it's port to LAN. For HTTP services I'm using
Ingress
but not sure what about raw service like that which I need to access on predictable address.
b

bulky-sunset-52084

11/14/2022, 8:47 PM
Traefik supports configuration of
IngressRoute
Objects for l4 specific workloads for example: https://doc.traefik.io/traefik/v2.3/routing/providers/kubernetes-crd/#kind-ingressrouteudp for UDP
c

creamy-pencil-82913

11/14/2022, 9:54 PM
it might be simpler to just use ServiceLB to expose an LB-type service.
Or if you want more options, you can disable ServiceLB and use MetalLB or Kube-VIP instead
Trying to get raw TCP/UDP services running through an Ingress controller can be an awful lot of work for something that’s better handled by a Service
g

gray-florist-76480

11/14/2022, 9:56 PM
hmm, ok