Update Gateway API to use new resources (#201)

We dont want to promote the use of the "old" resources with NB prefix so
the Gateway API integration should only support the new ones.

---------

Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
Philip Laine
2026-04-23 16:11:15 +02:00
committed by GitHub
parent 99ef70603f
commit 876a0e1eb3
10 changed files with 209 additions and 219 deletions
+21 -5
View File
@@ -1,9 +1,25 @@
apiVersion: netbird.io/v1
kind: NBRoutingPeer
apiVersion: netbird.io/v1alpha1
kind: NetworkRouter
metadata:
name: netbird
namespace: netbird
spec: {}
spec:
dnsZoneRef:
name: cluster.local
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
name: netbird-public
spec:
controllerName: "gateway.netbird.io/controller"
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
name: netbird-private
spec:
controllerName: "gateway.netbird.io/controller"
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
@@ -13,7 +29,7 @@ metadata:
spec:
gatewayClassName: netbird-private
listeners:
- protocol: gateway.netbird.io/NBRoutingPeer
- protocol: gateway.netbird.io/NetworkRouter
name: netbird
port: 1
---
@@ -25,6 +41,6 @@ metadata:
spec:
gatewayClassName: netbird-public
listeners:
- protocol: gateway.netbird.io/NBRoutingPeer
- protocol: gateway.netbird.io/NetworkRouter
name: netbird
port: 1