<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Agones – Create Kubernetes Cluster</title>
    <link>/site/docs/installation/creating-cluster/</link>
    <description>Recent content in Create Kubernetes Cluster on Agones</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/site/docs/installation/creating-cluster/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Docs: Google Kubernetes Engine</title>
      <link>/site/docs/installation/creating-cluster/gke/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/site/docs/installation/creating-cluster/gke/</guid>
      <description>
        
        
        

&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;

&lt;p&gt;Take the following steps to enable the Kubernetes Engine API:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Visit the &lt;a href=&#34;https://console.cloud.google.com/kubernetes/list&#34;&gt;Kubernetes Engine&lt;/a&gt; page in the Google Cloud Platform Console.&lt;/li&gt;
&lt;li&gt;Create or select a project.&lt;/li&gt;
&lt;li&gt;Wait for the API and related services to be enabled. This can take several minutes.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://support.google.com/cloud/answer/6293499#enable-billing&#34;&gt;Enable billing&lt;/a&gt; for your project.

&lt;ul&gt;
&lt;li&gt;If you are not an existing GCP user, you may be able to enroll for a $300 US &lt;a href=&#34;https://cloud.google.com/free/&#34;&gt;Free Trial&lt;/a&gt; credit.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&#34;choosing-a-shell&#34;&gt;Choosing a shell&lt;/h3&gt;

&lt;p&gt;To complete this quickstart, we can use either &lt;a href=&#34;https://cloud.google.com/shell/&#34;&gt;Google Cloud Shell&lt;/a&gt; or a local shell.&lt;/p&gt;

&lt;p&gt;Google Cloud Shell is a shell environment for managing resources hosted on Google Cloud Platform (GCP). Cloud Shell comes preinstalled with the &lt;a href=&#34;https://cloud.google.com/sdk/gcloud/&#34;&gt;gcloud&lt;/a&gt; and &lt;a href=&#34;https://kubernetes.io/docs/user-guide/kubectl-overview/&#34;&gt;kubectl&lt;/a&gt; command-line tools. &lt;code&gt;gcloud&lt;/code&gt; provides the primary command-line interface for GCP, and &lt;code&gt;kubectl&lt;/code&gt; provides the command-line interface for running commands against Kubernetes clusters.&lt;/p&gt;

&lt;p&gt;If you prefer using your local shell, you must install the gcloud and kubectl command-line tools in your environment.&lt;/p&gt;

&lt;h4 id=&#34;cloud-shell&#34;&gt;Cloud shell&lt;/h4&gt;

&lt;p&gt;To launch Cloud Shell, perform the following steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;a href=&#34;https://console.cloud.google.com/home/dashboard&#34;&gt;Google Cloud Platform Console&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;From the top-right corner of the console, click the
&lt;strong&gt;Activate Google Cloud Shell&lt;/strong&gt; button: &lt;img src=&#34;../../../../images/cloud-shell.png&#34; alt=&#34;cloud shell&#34; /&gt;&lt;/li&gt;
&lt;li&gt;A Cloud Shell session opens inside a frame at the bottom of the console. Use this shell to run &lt;code&gt;gcloud&lt;/code&gt; and &lt;code&gt;kubectl&lt;/code&gt; commands.&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Set a compute zone in your geographical region with the following command. The compute zone will be something like &lt;code&gt;us-west1-a&lt;/code&gt;. A full list can be found &lt;a href=&#34;https://cloud.google.com/compute/docs/regions-zones/#available&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;gcloud config &lt;span style=&#34;color:#204a87&#34;&gt;set&lt;/span&gt; compute/zone &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;[&lt;/span&gt;COMPUTE_ZONE&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;]&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h4 id=&#34;local-shell&#34;&gt;Local shell&lt;/h4&gt;

&lt;p&gt;To install &lt;code&gt;gcloud&lt;/code&gt; and &lt;code&gt;kubectl&lt;/code&gt;, perform the following steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;https://cloud.google.com/sdk/docs/quickstarts&#34;&gt;Install the Google Cloud SDK&lt;/a&gt;, which includes the &lt;code&gt;gcloud&lt;/code&gt; command-line tool.&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Initialize some default configuration by running the following command.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;When asked &lt;code&gt;Do you want to configure a default Compute Region and Zone? (Y/n)?&lt;/code&gt;, enter &lt;code&gt;Y&lt;/code&gt; and choose a zone in your geographical region of choice.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;gcloud init&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Install the &lt;code&gt;kubectl&lt;/code&gt; command-line tool by running the following command:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;gcloud components install kubectl&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&#34;creating-the-cluster&#34;&gt;Creating the cluster&lt;/h2&gt;

&lt;p&gt;A &lt;a href=&#34;https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture&#34;&gt;cluster&lt;/a&gt; consists of at least one &lt;em&gt;cluster master&lt;/em&gt; machine and multiple worker machines called &lt;em&gt;nodes&lt;/em&gt;: &lt;a href=&#34;https://cloud.google.com/compute/docs/instances/&#34;&gt;Compute Engine virtual machine&lt;/a&gt; instances that run the Kubernetes processes necessary to make them part of the cluster.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;gcloud container clusters create &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;[&lt;/span&gt;CLUSTER_NAME&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;]&lt;/span&gt; --cluster-version&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1&lt;/span&gt;.15 &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --tags&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;game-server &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --scopes&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;gke-default &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --num-nodes&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;4&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --no-enable-autoupgrade &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --machine-type&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;n1-standard-4&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Flag explanations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;cluster-version: Agones requires Kubernetes version 1.15.&lt;/li&gt;
&lt;li&gt;tags: Defines the tags that will be attached to new nodes in the cluster. This is to grant access through ports via the firewall created in the next step.&lt;/li&gt;
&lt;li&gt;scopes: Defines the Oauth scopes required by the nodes.&lt;/li&gt;
&lt;li&gt;num-nodes: The number of nodes to be created in each of the cluster&amp;rsquo;s zones. Default: 4. Depending on the needs of your game, this parameter should be adjusted.&lt;/li&gt;
&lt;li&gt;no-enable-autoupgrade: Disable automatic upgrades for nodes to reduce the likelihood of in-use games being disrupted.&lt;/li&gt;
&lt;li&gt;machine-type: The type of machine to use for nodes. Default: n1-standard-4. Depending on the needs of your game, you may wish to &lt;a href=&#34;https://cloud.google.com/compute/docs/machine-types&#34;&gt;have smaller or larger machines&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Optional&lt;/em&gt;: Create a dedicated node pool for the Agones controllers. If you choose to skip this step, the Agones
controllers will share the default node pool with your game servers which is fine for kicking the tires but is not
recommended for a production deployment.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;gcloud container node-pools create agones-system &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --cluster&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=[&lt;/span&gt;CLUSTER_NAME&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --no-enable-autoupgrade &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --node-taints agones.dev/agones-system&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;true:NoExecute &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --node-labels agones.dev/agones-system&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#204a87&#34;&gt;true&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --num-nodes&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Optional&lt;/em&gt;: Create a node pool for &lt;a href=&#34;/site/site/docs/guides/metrics/&#34;&gt;Metrics&lt;/a&gt; if you want to monitor the
 Agones system using Prometheus with Grafana or Stackdriver.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;gcloud container node-pools create agones-metrics &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --cluster&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=[&lt;/span&gt;CLUSTER_NAME&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;]&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --no-enable-autoupgrade &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --node-taints agones.dev/agones-metrics&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;true:NoExecute &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --node-labels agones.dev/agones-metrics&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#204a87&#34;&gt;true&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --num-nodes&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Flag explanations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;cluster: The name of the cluster in which the node pool is created.&lt;/li&gt;
&lt;li&gt;no-enable-autoupgrade: Disable automatic upgrades for nodes to reduce the likelihood of in-use games being disrupted.&lt;/li&gt;
&lt;li&gt;node-taints: The Kubernetes taints to automatically apply to nodes in this node pool.&lt;/li&gt;
&lt;li&gt;node-labels: The Kubernetes labels to automatically apply to nodes in this node pool.&lt;/li&gt;
&lt;li&gt;num-nodes: The Agones system controllers only require a single node of capacity to run. For faster recovery time in the event of a node failure, you can increase the size to 2.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Finally, let&amp;rsquo;s tell &lt;code&gt;gcloud&lt;/code&gt; that we are speaking with this cluster, and get auth credentials for &lt;code&gt;kubectl&lt;/code&gt; to use.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;gcloud config &lt;span style=&#34;color:#204a87&#34;&gt;set&lt;/span&gt; container/cluster &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;[&lt;/span&gt;CLUSTER_NAME&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;]&lt;/span&gt;
gcloud container clusters get-credentials &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;[&lt;/span&gt;CLUSTER_NAME&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;]&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h3 id=&#34;creating-the-firewall&#34;&gt;Creating the firewall&lt;/h3&gt;

&lt;p&gt;We need a firewall to allow UDP traffic to nodes tagged as &lt;code&gt;game-server&lt;/code&gt; via ports 7000-8000.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;gcloud compute firewall-rules create game-server-firewall &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --allow udp:7000-8000 &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --target-tags game-server &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --description &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Firewall to allow game server udp traffic&amp;#34;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&#34;next-steps&#34;&gt;Next Steps&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Continue to &lt;a href=&#34;/site/site/docs/installation/install-agones/&#34;&gt;Install Agones&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: Amazon Elastic Kubernetes Service</title>
      <link>/site/docs/installation/creating-cluster/eks/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/site/docs/installation/creating-cluster/eks/</guid>
      <description>
        
        
        

&lt;p&gt;Create your EKS Cluster using the &lt;a href=&#34;https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html&#34;&gt;Getting Started Guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Possible steps are the following:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create new IAM role for cluster management.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;aws configure&lt;/code&gt; to authorize your &lt;code&gt;awscli&lt;/code&gt; with proper &lt;code&gt;AWS Access Key ID&lt;/code&gt; and &lt;code&gt;AWS Secret Access Key&lt;/code&gt;.&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Create an example cluster:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;eksctl create cluster \
--name prod \
--version 1.15 \
--nodegroup-name standard-workers \
--node-type t3.medium \
--nodes 3 \
--nodes-min 3 \
--nodes-max 4 \
--node-ami auto
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;



&lt;div class=&#34;alert alert-info&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;alert-heading&#34;&gt;Note&lt;/h4&gt;
EKS does not use the normal Kubernetes networking since it is &lt;a href=&#34;https://www.contino.io/insights/kubernetes-is-hard-why-eks-makes-it-easier-for-network-and-security-architects&#34;&gt;incompatible with Amazon VPC networking&lt;/a&gt;.
&lt;/div&gt;


&lt;h2 id=&#34;allowing-udp-traffic&#34;&gt;Allowing UDP Traffic&lt;/h2&gt;

&lt;p&gt;For Agones to work correctly, we need to allow UDP traffic to pass through to our EKS cluster worker nodes. To achieve this, we must update the workers&amp;rsquo; nodepool SG (Security Group) with the proper rule. A simple way to do that is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Log in to the AWS Management Console&lt;/li&gt;
&lt;li&gt;Go to the VPC Dashboard and select &lt;strong&gt;Security Groups&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Find the Security Group for the workers nodepool, which will be named something like &lt;code&gt;eksctl-[cluster-name]-nodegroup-[cluster-name]-workers/SG&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Inbound Rules&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Edit Rules&lt;/strong&gt; to add a new &lt;strong&gt;Custom UDP Rule&lt;/strong&gt; with a 7000-8000 port range and an appropriate &lt;strong&gt;Source&lt;/strong&gt; CIDR range (&lt;code&gt;0.0.0.0/0&lt;/code&gt; allows all traffic)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&#34;next-steps&#34;&gt;Next Steps&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Continue to &lt;a href=&#34;/site/site/docs/installation/install-agones/&#34;&gt;Install Agones&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: Azure Kubernetes Service</title>
      <link>/site/docs/installation/creating-cluster/aks/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/site/docs/installation/creating-cluster/aks/</guid>
      <description>
        
        
        

&lt;h2 id=&#34;choosing-your-shell&#34;&gt;Choosing your shell&lt;/h2&gt;

&lt;p&gt;You can use either &lt;a href=&#34;https://docs.microsoft.com/azure/cloud-shell/overview&#34;&gt;Azure Cloud Shell&lt;/a&gt; or install the &lt;a href=&#34;https://docs.microsoft.com/cli/azure/?view=azure-cli-latest&#34;&gt;Azure CLI&lt;/a&gt; on your local shell in order to install AKS in your own Azure subscription. Cloud Shell comes preinstalled with &lt;code&gt;az&lt;/code&gt; and &lt;code&gt;kubectl&lt;/code&gt; utilities whereas you need to install them locally if you want to use your local shell. If you use Windows 10, you can use the &lt;a href=&#34;https://docs.microsoft.com/windows/wsl/install-win10&#34;&gt;WIndows Subsystem for Windows&lt;/a&gt; as well.&lt;/p&gt;

&lt;h2 id=&#34;creating-the-aks-cluster&#34;&gt;Creating the AKS cluster&lt;/h2&gt;

&lt;p&gt;If you are using Azure CLI from your local shell, you need to log in to your Azure account by executing the &lt;code&gt;az login&lt;/code&gt; command and following the login procedure.&lt;/p&gt;

&lt;p&gt;Here are the steps you need to follow to create a new AKS cluster (additional instructions and clarifications are listed &lt;a href=&#34;https://docs.microsoft.com/azure/aks/kubernetes-walkthrough&#34;&gt;here&lt;/a&gt;):&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;color:#8f5902;font-style:italic&#34;&gt;# Declare necessary variables, modify them according to your needs&lt;/span&gt;
&lt;span style=&#34;color:#000&#34;&gt;AKS_RESOURCE_GROUP&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;akstestrg     &lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# Name of the resource group your AKS cluster will be created in&lt;/span&gt;
&lt;span style=&#34;color:#000&#34;&gt;AKS_NAME&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;akstest                 &lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# Name of your AKS cluster&lt;/span&gt;
&lt;span style=&#34;color:#000&#34;&gt;AKS_LOCATION&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;westeurope          &lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# Azure region in which you&amp;#39;ll deploy your AKS cluster&lt;/span&gt;

&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# Create the Resource Group where your AKS resource will be installed&lt;/span&gt;
az group create --name &lt;span style=&#34;color:#000&#34;&gt;$AKS_RESOURCE_GROUP&lt;/span&gt; --location &lt;span style=&#34;color:#000&#34;&gt;$AKS_LOCATION&lt;/span&gt;

&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# Create the AKS cluster - this might take some time. Type &amp;#39;az aks create -h&amp;#39; to see all available options&lt;/span&gt;
&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# The following command will create a four Node AKS cluster. Node size is Standard A1 v1 and Kubernetes version is 1.15.10. Plus, SSH keys will be generated for you, use --ssh-key-value to provide your values&lt;/span&gt;
az aks create --resource-group &lt;span style=&#34;color:#000&#34;&gt;$AKS_RESOURCE_GROUP&lt;/span&gt; --name &lt;span style=&#34;color:#000&#34;&gt;$AKS_NAME&lt;/span&gt; --node-count &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;4&lt;/span&gt; --generate-ssh-keys --node-vm-size Standard_A4_v2 --kubernetes-version &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1&lt;/span&gt;.15.10

&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# Install kubectl&lt;/span&gt;
sudo az aks install-cli

&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# Get credentials for your new AKS cluster&lt;/span&gt;
az aks get-credentials --resource-group &lt;span style=&#34;color:#000&#34;&gt;$AKS_RESOURCE_GROUP&lt;/span&gt; --name &lt;span style=&#34;color:#000&#34;&gt;$AKS_NAME&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Alternatively, you can use the &lt;a href=&#34;https://portal.azure.com&#34;&gt;Azure Portal&lt;/a&gt; to create a new AKS cluster &lt;a href=&#34;https://docs.microsoft.com/azure/aks/kubernetes-walkthrough-portal&#34;&gt;(instructions)&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&#34;allowing-udp-traffic&#34;&gt;Allowing UDP traffic&lt;/h3&gt;

&lt;p&gt;For Agones to work correctly, we need to allow UDP traffic to pass through to our AKS cluster. To achieve this, we must update the NSG (Network Security Group) with the proper rule. A simple way to do that is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Log in to the Azure Portal&lt;/li&gt;
&lt;li&gt;Find the resource group where the AKS resources are kept, which should have a name like &lt;code&gt;MC_resourceGroupName_AKSName_westeurope&lt;/code&gt;. Alternative, you can type &lt;code&gt;az resource show --namespace Microsoft.ContainerService --resource-type managedClusters -g $AKS_RESOURCE_GROUP -n $AKS_NAME -o json | jq .properties.nodeResourceGroup&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Find the Network Security Group object, which should have a name like &lt;code&gt;aks-agentpool-********-nsg&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Inbound Security Rules&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Add&lt;/strong&gt; to create a new Rule with &lt;strong&gt;UDP&lt;/strong&gt; as the protocol and &lt;strong&gt;7000-8000&lt;/strong&gt; as the Destination Port Ranges. Pick a proper name and leave everything else at their default values&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Alternatively, you can use the following command, after modifying the &lt;code&gt;RESOURCE_GROUP_WITH_AKS_RESOURCES&lt;/code&gt; and &lt;code&gt;NSG_NAME&lt;/code&gt; values:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;az network nsg rule create &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --resource-group RESOURCE_GROUP_WITH_AKS_RESOURCES &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --nsg-name NSG_NAME &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --name AgonesUDP &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --access Allow &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --protocol Udp &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --direction Inbound &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --priority &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;520&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --source-port-range &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;*&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&lt;/span&gt;  --destination-port-range &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;7000&lt;/span&gt;-8000&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h3 id=&#34;creating-and-assigning-public-ips-to-nodes&#34;&gt;Creating and assigning Public IPs to Nodes&lt;/h3&gt;

&lt;p&gt;Nodes in AKS don&amp;rsquo;t get a Public IP by default. To assign a Public IP to a Node, find the Resource Group where the AKS resources are installed on the &lt;a href=&#34;https://portal.azure.com&#34;&gt;portal&lt;/a&gt; (it should have a name like &lt;code&gt;MC_resourceGroupName_AKSName_westeurope&lt;/code&gt;). Then, you can follow the instructions &lt;a href=&#34;https://docs.microsoft.com/en-us/azure/site-recovery/concepts-public-ip-address-with-site-recovery&#34;&gt;here&lt;/a&gt; to create a new Public IP and assign it to the Node/VM. For more information on Public IPs for VM NICs, see &lt;a href=&#34;https://docs.microsoft.com/azure/virtual-network/virtual-network-network-interface-addresses&#34;&gt;this document&lt;/a&gt;. If you are looking for an automated way to create and assign Public IPs for your AKS Nodes, check &lt;a href=&#34;https://github.com/dgkanatsios/AksNodePublicIPController&#34;&gt;this project&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&#34;next-steps&#34;&gt;Next Steps&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Continue to &lt;a href=&#34;/site/site/docs/installation/install-agones/&#34;&gt;Install Agones&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: Minikube</title>
      <link>/site/docs/installation/creating-cluster/minikube/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/site/docs/installation/creating-cluster/minikube/</guid>
      <description>
        
        
        

&lt;h2 id=&#34;installing-minikube&#34;&gt;Installing Minikube&lt;/h2&gt;

&lt;p&gt;First, &lt;a href=&#34;https://minikube.sigs.k8s.io/docs/start/&#34;&gt;install Minikube&lt;/a&gt;, which may also require you to install
a virtualisation solution, such as &lt;a href=&#34;https://www.virtualbox.org&#34;&gt;VirtualBox&lt;/a&gt; as well.&lt;/p&gt;

&lt;h2 id=&#34;creating-an-agones-profile&#34;&gt;Creating an &lt;code&gt;agones&lt;/code&gt; profile&lt;/h2&gt;

&lt;p&gt;Let&amp;rsquo;s use a minikube profile for &lt;code&gt;agones&lt;/code&gt;, to make sure we don&amp;rsquo;t overlap any
existing Minikube clusters you may be running.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;minikube profile agones&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&#34;starting-minikube&#34;&gt;Starting Minikube&lt;/h2&gt;

&lt;p&gt;The following command starts a local minikube cluster via virtualbox - but this can be
replaced by a &lt;a href=&#34;https://github.com/kubernetes/minikube#requirements&#34;&gt;vm-driver&lt;/a&gt; of your choice.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre 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;minikube start --kubernetes-version v1.15.10 --vm-driver virtualbox&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&#34;next-steps&#34;&gt;Next Steps&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Continue to &lt;a href=&#34;/site/site/docs/installation/install-agones/&#34;&gt;Install Agones&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
  </channel>
</rss>
