Skip to content

Add support for GatewayAPI's UDPRoute#2117

Merged
ytsarev merged 3 commits intomasterfrom
gatewayapi/udproute
Dec 23, 2025
Merged

Add support for GatewayAPI's UDPRoute#2117
ytsarev merged 3 commits intomasterfrom
gatewayapi/udproute

Conversation

@abaguas
Copy link
Contributor

@abaguas abaguas commented Nov 14, 2025

This PR is the third of a series implementing support for the GatewayAPI: #954

This PR adds support for UDPRoute resources. The implementation is the exact same as for TCPRoute resources (#2116):

apiVersion: gateway.networking.k8s.io/v1alpha2
kind: UDPRoute
metadata:
  name: gatewayapi-udproute
  namespace: test-gslb
spec:
  parentRefs:
  - name: gatewayapi-gateway
  rules:
  - backendRefs:
    - name: gatewayapi-udproute-service
      port: 8080

Similarly to TCPRoute resources, the UDPRoute does not have a hostname, therefore we rely on the GSLB's k8gb.io/hostname annotation to fetch it. We also do this for services of type load balancer:

apiVersion: k8gb.absa.oss/v1beta1
kind: Gslb
metadata:
  name: gatewayapi-udproute
  namespace: test-gslb
  labels:
    k8gb.io/hostname: gatewayapi-udproute.cloud.example.com
spec:
  resourceRef:
    apiVersion: gateway.networking.k8s.io/v1alpha2
    kind: TCPRoute
    name: gatewayapi-udproute
  strategy:
    type: roundRobin
    dnsTtlSeconds: 30

@abaguas abaguas changed the base branch from master to gatewayapi/tcproute November 14, 2025 14:45
@abaguas abaguas force-pushed the gatewayapi/udproute branch from 4b92764 to 25dc93c Compare November 14, 2025 15:08
@ytsarev ytsarev force-pushed the gatewayapi/tcproute branch from 1f35699 to 8af86a2 Compare December 18, 2025 01:00
Base automatically changed from gatewayapi/tcproute to master December 18, 2025 15:58
abaguas and others added 2 commits December 23, 2025 00:12
Signed-off-by: Andre Aguas <andre.aguas@protonmail.com>
* Fix annotation
* Add Gateway allowedRoutes setup for udp
* Add test udproute and gslb resources
* Automatically set the failover example in local testbed
* Add previously missing tcproute to automated apply in the Makefile

Signed-off-by: Yury Tsarev <yury@upbound.io>
@ytsarev ytsarev force-pushed the gatewayapi/udproute branch from 25dc93c to 757d907 Compare December 22, 2025 23:56
@netlify
Copy link

netlify bot commented Dec 22, 2025

Deploy Preview for k8gb-preview ready!

Name Link
🔨 Latest commit 1d9758e
🔍 Latest deploy log https://app.netlify.com/projects/k8gb-preview/deploys/6949dc3a6f8a4300085a491f
😎 Deploy Preview https://deploy-preview-2117--k8gb-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Yury Tsarev <yury@upbound.io>
@ytsarev ytsarev marked this pull request as ready for review December 23, 2025 00:28
@ytsarev
Copy link
Member

ytsarev commented Dec 23, 2025

Rebased, added udp route to local setup, fixed annotation, tested failover end-to-end.

@ytsarev ytsarev merged commit 2fa5311 into master Dec 23, 2025
18 checks passed
@ytsarev ytsarev deleted the gatewayapi/udproute branch December 23, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants