NetworkInfrastructure configures how a gateway discovers backend game servers, how its network proxy Deployments are templated, and (at the GatewayClass level) how the edge proxy DaemonSet is configured.
API group: gateway.networking.minefleet.dev/v1alpha1
Example
Spec fields
discovery
Controls which Kubernetes Services are discovered as available backends.
A Service is included if it matches the label selector and has a TCP port named
minecraft, a TCP port numbered 25565, or (as a fallback) any TCP port.
Port selection priority:
- TCP port named
minecraft - TCP port number
25565 - First TCP port found
status.backendRefs and made available to routes as backends.
networkTemplate
Optional. Customizes the Velocity proxy Deployment created for each gateway listener. Fields are merged into the controller-managed default.
selector- Environment variables:
NAMESPACE,GATEWAY_NAME,LISTENER_NAME,GATEWAY_NETWORK_XDS_HOST,GATEWAY_NETWORK_XDS_PORT
edgeTemplate
Configures the Envoy edge proxy DaemonSet. Only effective when set on a NetworkInfrastructure referenced by a GatewayClass — per-gateway infrastructure ignores this field.
daemonSet fields:
Status fields
Class-level vs. gateway-level
ANetworkInfrastructure can be referenced from a GatewayClass (cluster-wide defaults) or from a Gateway (per-gateway overrides). When both are present, they are merged:
This lets you configure the edge DaemonSet once at the class level while each gateway customizes its own network proxy.
See Network Integration if you want to replace the built-in Velocity proxy with your own implementation.