# Exhaustive UDPRoute reference (gateway.networking.k8s.io/v1alpha2). # Routes raw UDP datagrams (DNS, STUN/TURN, game servers, QUIC-before-TLS) # from a UDP listener to backends. Same minimal shape as TCPRoute: UDP has # no sessions or headers to match on, so backendRefs carry the whole rule. apiVersion: gateway.networking.k8s.io/v1alpha2 kind: UDPRoute metadata: name: app-stun namespace: example labels: app: app spec: parentRefs: # Bind to the UDP listener of the Gateway. Same fields as HTTPRoute # parentRefs: name/kind/group plus sectionName and/or port narrowing. - name: example kind: Gateway group: gateway.networking.k8s.io sectionName: udp port: 3478 rules: - backendRefs: - name: app-service # port: backend Service port. Required. port: 3478 kind: Service group: "" # weight: share of traffic when several backends are listed. weight: 1