Prerequisites
Before you begin, ensure you have:- A Kubernetes cluster (1.27+) with at least 3 nodes
kubectlconfigured to access your cluster- Sufficient permissions to create namespaces and custom resources
For local development, you can use Minikube, kind, or Docker Desktop.
Installation
Install Agones using Helm
Add the Agones Helm repository and install the latest stable release:
The installation typically takes 2-3 minutes. Agones will create several deployments including the controller, allocator, and extensions components.
Deploy Your First GameServer
Now let’s deploy a simple game server to verify everything works.Create a GameServer resource
Create a file named This defines a simple UDP game server that:
gameserver.yaml with the following content:gameserver.yaml
- Uses dynamic port allocation
- Listens on container port 7654
- Includes basic resource requests and limits
Apply the GameServer manifest
Deploy the game server to your cluster:Agones will automatically:
- Create a Pod for your game server
- Inject the Agones SDK sidecar container
- Allocate a host port and expose it
- Monitor the game server’s health
Check the GameServer status
Watch the GameServer transition through states:Output:The GameServer will progress through these states:
Creating→Starting→Scheduled→RequestReady→Ready
The
Ready state means the game server is healthy and available for allocation.Connect to Your GameServer
Let’s test connectivity to the game server using netcat.Send a test message
Use netcat (or your preferred UDP client) to send a message:The game server will respond with:
Deploy a Fleet
For production workloads, you’ll want to manage multiple game servers as a Fleet.Allocate a GameServer
Allocate a GameServer from your Fleet for a game session.Clean Up
When you’re done testing:What’s Next?
Installation Guide
Learn about advanced installation options and configuration
GameServer Reference
Explore all GameServer configuration options
Fleet Management
Deep dive into Fleet management and scaling
SDK Integration
Integrate your game server with the Agones SDK
Troubleshooting
GameServer stuck in Creating state
GameServer stuck in Creating state
Check pod events:Common causes:
- Image pull errors
- Insufficient cluster resources
- Node scheduling issues
Cannot connect to GameServer
Cannot connect to GameServer
Verify:
- Firewall rules allow traffic on the allocated port range (default 7000-8000)
- Load balancer configuration is correct
- Network policies don’t block traffic
Agones pods not starting
Agones pods not starting
Check Agones system logs:Verify RBAC permissions:
