Agones Installation
✍ Last Updated : September 19, 2022
🚪 Prequisite Knowledge (Optional)
‣
[Containerization / Docker](Containerization Docker 2e0ce73ff63b419d9e2782d79c4cc440.md)
[Kubernetes Basics](Kubernetes Basics 13d23a5871e14e34b61adac97169813b.md)
[Helm (Kubernetes Package Manager)](Helm (Kubernetes Package Manager)%20b59a71bc7bdf4ec28d83450058a82ea4.md)
❓ Key Question / Problem / Issue
How to setup agones infrastructure in kubernetes cluster ?
✅ Expected Output/Definition of Done
Clear Guideline on how to setup Agones within kubernetes cluster
🎁 Resulting Solution
Create “agones-system” namespace
We will install Agones in this namespace
run
kubectl create namespace agones-system
result
namespace/agones-system created
Add Agones chart to local repositories
run
helm repo add agones https://agones.dev/chart/stable
result
"agones" has been added to your repositories
Update repositories
run
helm repo update
result
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "agones" chart repository
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈Happy Helming!⎈
Install Agones
Install agones on namespace “agones-system”
run
helm upgrade -i --set agones.ping.replicas=1,agones.allocator.replicas=1 agones-release --namespace agones-system agones/agones --version 1.25.0
result
NAME: agones-release
LAST DEPLOYED: Wed Jul 27 17:29:21 2022
NAMESPACE: agones-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
The Agones components have been installed in the namespace agones-system.
You can get their status by running:
kubectl --namespace agones-system get pods -o wide
Once ready you can create your first GameServer using our examples https://agones.dev/site/docs/getting-started/create-gameserver/
.
Finally don't forget to explore our documentation and usage guides on how to develop and host dedicated game servers on top of Agones:
- Create a Game Server (https://agones.dev/site/docs/getting-started/create-gameserver/)
- Integrating the Game Server SDK (https://agones.dev/site/docs/guides/client-sdks/)
- GameServer Health Checking (https://agones.dev/site/docs/guides/health-checking/)
- Accessing Agones via the Kubernetes API (https://agones.dev/site/docs/guides/access-api/)
Confirm Agones is installed
Get all pods in namespace "agones-system" to confirm if agones is running
run
kubectl get pods --namespace agones-system
result
NAME READY STATUS RESTARTS AGE
agones-allocator-75fd8db77-5gmps 1/1 Running 0 84s
agones-controller-57dc6bcf66-tp5rr 1/1 Running 0 84s
agones-ping-5d65c78cb5-5s6ph 1/1 Running 0 84s
No Comments