<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Examples on Agones</title>
    <link>/site/docs/examples/</link>
    <description>Recent content in Examples on Agones</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 12 Apr 2026 21:50:48 +0530</lastBuildDate>
    <atom:link href="/site/docs/examples/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Custom Controller for Agones Game Servers</title>
      <link>/site/docs/examples/custom-controller/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/site/docs/examples/custom-controller/</guid>
      <description>&lt;h2 id=&#34;prerequisite&#34;&gt;Prerequisite&lt;/h2&gt;&#xA;&lt;p&gt;To get started, ensure the following prerequisites are met:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;You have a running Kubernetes cluster.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Agones is installed on your cluster. Refer &lt;a href=&#34;https://agones.dev/site/docs/installation/install-agones/&#34;&gt;Agones guide&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;(Optional) Review &#xA;&lt;a href=&#34;https://github.com/agones-dev/agones/blob/release-1.57.0/examples/custom-controller&#34; target=&#34;_blank&#34; data-proofer-ignore&gt;Custom Controller code&lt;/a&gt;&#xA; to see the details of this example.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;create-a-custom-controller&#34;&gt;Create a Custom Controller&lt;/h2&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s create a custom controller on your cluster using the following command:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kubectl apply -f https://raw.githubusercontent.com/googleforgames/agones/release-1.57.0/examples/custom-controller/deployment.yaml&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When you run this command, it quickly sets up your controller by doing four things:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Build and Run a Simple Game Server that Connects to an Inference Server</title>
      <link>/site/docs/examples/simple-genai-gameserver/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/site/docs/examples/simple-genai-gameserver/</guid>
      <description>&lt;h2 id=&#34;setting-up-the-genai-inference-server&#34;&gt;Setting up the GenAI Inference Server&lt;/h2&gt;&#xA;&lt;p&gt;You will need a separate GenAI inference server. This example uses the&#xA;&lt;a href=&#34;https://github.com/googleforgames/GenAI-quickstart&#34;&gt;Google for Games GenAI&lt;/a&gt; as its inference server.&#xA;This particular inference server has the request structure for the /chat endpoint:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;type GenAIRequest struct {&#xA;&#x9;Context         string  `json:&amp;#34;context,omitempty&amp;#34;`&#xA;&#x9;Prompt          string  `json:&amp;#34;prompt&amp;#34;`&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;optional-modify-the-genairequest-structure&#34;&gt;(Optional) Modify the GenAIRequest Structure&lt;/h3&gt;&#xA;&lt;p&gt;If you need a different request structure for your GenAI endpoint, you will need to clone or fork the Agones repository and&#xA;modify the above &lt;code&gt;GenAIRequest struct&lt;/code&gt; in &lt;a href=&#34;https://github.com/agones-dev/agones/blob/main/examples/simple-genai-server/main.go&#34;&gt;main.go&lt;/a&gt;. Update &lt;code&gt;REPOSITORY&lt;/code&gt; in the&#xA;&lt;a href=&#34;https://github.com/agones-dev/agones/blob/main/examples/simple-genai-server/Makefile&#34;&gt;agones/examples/simple-genai-server/Makefile&lt;/a&gt;&#xA;to your own container registry and run &lt;code&gt;make build &amp;amp;&amp;amp; make push&lt;/code&gt; from within the&#xA;&lt;code&gt;agones/examples/simple-genai-server&lt;/code&gt; path. Then modify the &lt;code&gt;gameserver_*.yaml&lt;/code&gt; to pull the image from&#xA;your container registry. If you are making a series of changes you may also want to add&#xA;&lt;code&gt;imagePullPolicy: Always&lt;/code&gt; to the container image in &lt;code&gt;gameserver_*.yaml&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Deploying and Running SuperTuxKart Server Using Agones</title>
      <link>/site/docs/examples/supertuxkart/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/site/docs/examples/supertuxkart/</guid>
      <description>&lt;h2 id=&#34;prerequisite&#34;&gt;Prerequisite&lt;/h2&gt;&#xA;&lt;p&gt;To get started, ensure the following prerequisites are met:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;You have a running Kubernetes cluster.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Agones is installed on your cluster. Refer to the &lt;a href=&#34;https://agones.dev/site/docs/installation/install-agones/&#34;&gt;Agones guide&lt;/a&gt; for the instructions.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;The SuperTuxKart client downloaded for gameplay. Download it from &lt;a href=&#34;https://supertuxkart.net/Main_Page&#34;&gt;SuperTuxKart&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;(Optional) Review &#xA;&lt;a href=&#34;https://github.com/agones-dev/agones/blob/release-1.57.0/examples/supertuxkart&#34; target=&#34;_blank&#34; data-proofer-ignore&gt;SuperTuxKart code&lt;/a&gt;&#xA; to see the details of this example.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;create-a-fleet&#34;&gt;Create a Fleet&lt;/h2&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s create a Fleet using the following command:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kubectl apply -f https://raw.githubusercontent.com/googleforgames/agones/release-1.57.0/examples/supertuxkart/fleet.yaml&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You should see a successful output similar to this :&lt;/p&gt;</description>
    </item>
    <item>
      <title>Deploying and Running Xonotic Server Using Agones</title>
      <link>/site/docs/examples/xonotic/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/site/docs/examples/xonotic/</guid>
      <description>&lt;h2 id=&#34;prerequisite&#34;&gt;Prerequisite&lt;/h2&gt;&#xA;&lt;p&gt;To get started, ensure the following prerequisites are met:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;You have a running Kubernetes cluster.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Agones is installed on your cluster. Refer to the &lt;a href=&#34;https://agones.dev/site/docs/installation/install-agones/&#34;&gt;Agones guide&lt;/a&gt; for the instructions.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;The Xonotic client downloaded for gameplay. Download it from &lt;a href=&#34;http://www.xonotic.org&#34;&gt;Xonotic&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;(Optional) Review &#xA;&lt;a href=&#34;https://github.com/agones-dev/agones/blob/release-1.57.0/examples/xonotic&#34; target=&#34;_blank&#34; data-proofer-ignore&gt;Xonotic code&lt;/a&gt;&#xA; to see the details of this example.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;create-a-fleet&#34;&gt;Create a Fleet&lt;/h2&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s create a Fleet using the following command:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kubectl apply -f https://raw.githubusercontent.com/googleforgames/agones/release-1.57.0/examples/xonotic/fleet.yaml&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You should see a successful output similar to this :&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
