# Examples

> List of available code examples

---

LLMS index: [llms.txt](/site/llms.txt)

---

## Configuration files

These are full examples for each of the resource types of Agones

- 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/gameserver.yaml" target="_blank" data-proofer-ignore>Full GameServer Configuration</a>

- 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/fleet.yaml" target="_blank" data-proofer-ignore>Full Fleet Configuration</a>

- 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/gameserverallocation.yaml" target="_blank" data-proofer-ignore>Full GameServer Allocation Configuration</a>

- 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/fleetautoscaler.yaml" target="_blank" data-proofer-ignore>Full Autoscaler Configuration with Buffer Strategy</a>

- 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/webhookfleetautoscaler.yaml" target="_blank" data-proofer-ignore>Full Autoscaler Configuration with Webhook Strategy</a>

- 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/webhookfleetautoscalertls.yaml" target="_blank" data-proofer-ignore>Full Autoscaler Configuration with Webhook Strategy + TLS</a>


## Game server implementations

These are all examples of simple game server implementations, that integrate the Agones game server SDK.

* 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/simple-game-server" target="_blank" data-proofer-ignore>Simple gameserver</a>
 (Go) - simple server that
  responds to TCP connections or UDP packets on the same port.
* 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/cpp-simple" target="_blank" data-proofer-ignore>CPP Simple</a>
 (C++) - C++ example that starts up, stays
  healthy and then shuts down after 60 seconds.
* 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/nodejs-simple" target="_blank" data-proofer-ignore>Node.js Simple</a>
 (Node.js) -
  A simple Node.js example that marks itself as ready, sets some labels and then shutsdown.
* 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/rust-simple" target="_blank" data-proofer-ignore>Rust Simple</a>
 (Rust) -
  A simple Rust example that marks itself as ready, sets some labels and then shutsdown.
* 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/unity-simple" target="_blank" data-proofer-ignore>Unity Simple</a>
 (Unity3d)  -
  This is a very simple "unity server" that doesn't do much other than show how the SDK works in Unity.
* 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/xonotic" target="_blank" data-proofer-ignore>Xonotic</a>
 - Wraps the SDK around the open source FPS game
  [Xonotic](http://www.xonotic.org) and hosts it on Agones.
* 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/supertuxkart" target="_blank" data-proofer-ignore>SuperTuxKart</a>
 \- Wraps the SDK around the open source
  racing game [SuperTuxKart](https://supertuxkart.net/), and hosts it on Agones.
 - 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/custom-controller" target="_blank" data-proofer-ignore>Custom-Controller</a>
 (Go) - A custom controller for Agones designed to log GameServer details on insert, update, or delete, demonstrating how to build your own controller. 

## Building on top of Agones

- 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/crd-client" target="_blank" data-proofer-ignore>Agones API Usage Example</a>
 (Go) -
  This service provides an example of using the [Agones API](https://pkg.go.dev/agones.dev/agones/pkg/client/clientset/versioned/typed/agones/v1)
  to create a GameServer.

## Game Server Allocation

- 
<a href="https://github.com/agones-dev/agones/blob/release-1.58.0/examples/allocation-endpoint" target="_blank" data-proofer-ignore>Allocation Endpoint Example</a>
 - An Agones clusters 
  aware proxy, built on Google Cloud.

## Integrations with other projects

* [googleforgames/space-agon](https://github.com/googleforgames/space-agon) - Space Agon is a demo of Agones and 
  Open Match with a browser based game.
* [googleforgames/global-multiplayer-demo](https://github.com/googleforgames/global-multiplayer-demo) - A demo of a global scale multiplayer game using Agones, Open Match, Unreal Engine 5 and multiple Google Cloud products.

---

Section pages:

- [Custom Controller for Agones Game Servers](/site/docs/examples/custom-controller/): This Custom Controller example shows how to create, deploy and run a Custom Kubernetes Controller for Agones that logs changes to GameServers and modifies their labels.
- [Build and Run a Simple Game Server that Connects to an Inference Server](/site/docs/examples/simple-genai-gameserver/): This example shows how to set up a simple game server that integrates with your inference server's GenAI endpoints. You can either interact with one GenAI endpoint via TCP, or set up two endpoints to "chat" to each other.
- [Deploying and Running SuperTuxKart Server Using Agones](/site/docs/examples/supertuxkart/): This SuperTuxKart example shows how to set up, deploy, and manage a SuperTuxKart game server on a Kubernetes cluster using Agones. It highlights an approach to integrate with existing dedicated game servers.
- [Deploying and Running Xonotic Server Using Agones](/site/docs/examples/xonotic/): This Xonotic example shows setting up, deploying, and managing a Xonotic game server on a Kubernetes cluster with Agones. It uses a simple Go wrapper to connect existing game servers with Agones, making it straightforward to run games in the cloud.
