Skip to content

Commit

Permalink
Fix installation docs, and example GS config (googleforgames#962)
Browse files Browse the repository at this point in the history
We now have 6 pods in agones-system namespace.
There was an issue in PortPolicy and image tag.
  • Loading branch information
aLekSer authored and markmandel committed Jul 31, 2019
1 parent bb646b1 commit f95c376
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/gameserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand Down Expand Up @@ -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
26 changes: 20 additions & 6 deletions site/content/en/docs/Installation/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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`.
Expand Down

0 comments on commit f95c376

Please sign in to comment.