Could not find an Allocatable GameServer
I am getting this error in agones-controller-service :
{"error":"Could not find an Allocatable GameServer","gsa":{"kind":"GameServerAllocation","apiVersion":"allocation.agones.dev/v1","metadata":{"namespace":"wildwarz","creationTimestamp":"2022-08-10T06:49:17Z"},"spec":{"multiClusterSetting":{"policySelector":{}},"required":{"matchLabels":{"agonesdevfleet":"uno-fleet"}},"selectors":[{"matchLabels":{"agonesdevfleet":"uno-fleet"}}],"scheduling":"Packed","metadata":{}},"status":{"state":"","gameServerName":""}},"gsaKey":"wildwarz/","message":"failed to allocate. Retrying...","severity":"warning","source":"*gameserverallocations.Allocator","time":"2022-08-10T06:49:18.210961678Z"}
While the game server with this label already exists :



I am installing agones without tls : helm install my-release agones/agones --set gameservers.namespaces={wildwarz},agones.ping.http.serviceType=ClusterIP,agones.ping.udp.serviceType=ClusterIP,agones.allocator.service.serviceType=ClusterIP,agones.allocator.disableMTLS=true,agones.allocator.disableTLS=true --namespace agones-system
Please help to find out what I am doing wrong
Resolved by adding label in yaml file :
I already set using gameserver setlabel in c# client library, but don't know why it is not working :

GameServerAllocation selects against a GameServer not a Pod - so the label has to exist on the GameServer for it to be resolved against.
Just confirming if this question was answered - if no response, we'll close this issue. Hoping it did though 😄
Closing as stale.