From f95c3766b11433ff7bbaba33036d95ffd8767a54 Mon Sep 17 00:00:00 2001 From: Alexander Apalikov Date: Wed, 31 Jul 2019 06:44:20 +0300 Subject: [PATCH] Fix installation docs, and example GS config (#962) We now have 6 pods in agones-system namespace. There was an issue in PortPolicy and image tag. --- examples/gameserver.yaml | 4 ++-- site/content/en/docs/Installation/_index.md | 26 ++++++++++++++++----- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/examples/gameserver.yaml b/examples/gameserver.yaml index d9567b5e78..729e85b600 100644 --- a/examples/gameserver.yaml +++ b/examples/gameserver.yaml @@ -41,7 +41,7 @@ spec: # - "Passthrough" dynamically sets the `containerPort` to the same value as the dynamically selected hostPort. # This will mean that users will need to lookup what port has been opened through the server side SDK. # port is available. When static is the policy specified, `hostPort` is required to be populated - portPolicy: Dynamic + portPolicy: Static # the port that is being opened on the game server process containerPort: 7654 # the port exposed on the host, only required when `portPolicy` is "Static". Overwritten when portPolicy is "Dynamic". @@ -71,5 +71,5 @@ spec: spec: containers: - name: example-server - image: gcr.io/agones/test-server:0.1 + image: gcr.io/agones-images/udp-server:0.14 imagePullPolicy: Always diff --git a/site/content/en/docs/Installation/_index.md b/site/content/en/docs/Installation/_index.md index 2bdd0ae977..30b6366c5f 100644 --- a/site/content/en/docs/Installation/_index.md +++ b/site/content/en/docs/Installation/_index.md @@ -263,7 +263,7 @@ Create your EKS Cluster using the [Getting Started Guide](https://docs.aws.amazo {{% feature expiryVersion="0.12.0" %}} ### Ensure VPC CNI 1.2 is Running -EKS does not use the normal Kubernetes networking since it is [incompatible with Amazon VPC networking](https://www.contino.io/insights/kubernetes-is-hard-why-eks-makes-it-easier-for-network-and-security-architects). +EKS does not use the normal Kubernetes networking since it is [incompatible with Amazon VPC networking](https://www.contino.io/insights/kubernetes-is-hard-why-eks-makes-it-easier-for-network-and-security-architects). In a console, run this command to get your current cni version @@ -419,14 +419,28 @@ To confirm Agones is up and running, run the following command: kubectl describe --namespace agones-system pods ``` -It should describe the single pod created in the `agones-system` namespace, with no error messages or status. The `Conditions` section should look like this: +It should describe six pods created in the `agones-system` namespace, with no error messages or status. All `Conditions` sections should look like this: ``` Conditions: - Type Status - Initialized True - Ready True - PodScheduled True + Type Status + Initialized True + Ready True + ContainersReady True + PodScheduled True +``` + +All this pods should be in a `RUNNING` state: +```bash +kubectl get pods --namespace agones-system + +NAME READY STATUS RESTARTS AGE +agones-controller-79f6c59bdb-9swzz 1/1 Running 0 2m47s +agones-ping-8598d64bbd-gd6cg 1/1 Running 0 2m47s +agones-ping-8598d64bbd-tjpcx 1/1 Running 0 2m47s +gameserver-allocator-6bd4d456f9-bbj76 1/1 Running 0 2m48s +gameserver-allocator-6bd4d456f9-vlkhk 1/1 Running 0 2m48s +gameserver-allocator-6bd4d456f9-x7t9h 1/1 Running 0 2m48s ``` That's it! This creates the [Custom Resource Definitions][crds] that power Agones and allows us to define resources of type `GameServer`.