When fallback routes activate
The network proxy activates a fallback route when:- The primary backend server is offline (connection refused / timeout).
- The primary server is full (player count at maximum).
MinecraftFallbackRoute rules in priority order after it finds the primary MinecraftJoinRoute backend unavailable.
Basic fallback route
This example sends players to thelobby server whenever a primary route fails:
Using fallbackFor to target specific services
The fallbackFor field selects which services this fallback applies to using a label selector, without hardcoding service names. The controller resolves the selector against EndpointSlice labels at snapshot build time.
kubernetes.io/service-name label on EndpointSlices to resolve the selector to concrete service references. When a matched service scales to zero replicas, its EndpointSlice becomes empty and the network proxy considers it unavailable.
Combining fallbackFor with domain filtering
You can narrow a fallback to only apply for specific hostnames:
type: all, both conditions must match. The fallback only activates when the player connected to play.example.com and a survival server is unavailable.
Fallback priority
When multiple fallback routes could apply,priority controls which is tried first. Higher values win.
Difference from join routes
Fallback routes and join routes serve different purposes and are evaluated differently:
A fallback route alone does not route a player to your server — a join route must be matched first at the edge layer.