Files
netbird-kubernetes-operator/examples/gateway-api/gateway.yaml
T

47 lines
924 B
YAML
Raw Normal View History

apiVersion: netbird.io/v1alpha1
kind: NetworkRouter
2026-03-19 13:01:58 +01:00
metadata:
2026-03-23 09:59:48 +01:00
name: netbird
namespace: netbird
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"
2026-03-23 09:59:48 +01:00
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: private
namespace: netbird
2026-03-19 13:01:58 +01:00
spec:
2026-03-23 09:59:48 +01:00
gatewayClassName: netbird-private
listeners:
- protocol: gateway.netbird.io/NetworkRouter
2026-03-23 09:59:48 +01:00
name: netbird
port: 1
2026-03-19 13:01:58 +01:00
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: public
2026-03-19 13:01:58 +01:00
namespace: netbird
spec:
2026-03-23 09:59:48 +01:00
gatewayClassName: netbird-public
2026-03-19 13:01:58 +01:00
listeners:
- protocol: gateway.netbird.io/NetworkRouter
name: netbird
2026-03-23 09:59:48 +01:00
port: 1