-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxonotic-gameservers.sh
executable file
·40 lines (28 loc) · 1.16 KB
/
xonotic-gameservers.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
gcloud container clusters get-credentials xonotic-game --region=asia-southeast1
kubectl create namespace agones-system
kubectl apply -f https://raw.githubusercontent.com/googleforgames/agones/release-1.16.0/install/yaml/install.yaml
sleep 1m
kubectl get --namespace agones-system pods
gcloud game servers realms create realm-xonotic \
--time-zone Singapore \
--location asia-southeast1
gcloud game servers clusters create cluster-xonotic \
--realm=realm-xonotic \
--gke-cluster locations/asia-southeast1/clusters/xonotic-game \
--namespace=default \
--location asia-southeast1 \
--no-dry-run
gcloud game servers deployments create deployment-xonotic
gcloud game servers configs create config-1 \
--deployment deployment-xonotic \
--fleet-configs-file xonotic_fleet_configs.yaml \
--scaling-configs-file xonotic_scaling_configs.yaml
gcloud game servers deployments update-rollout deployment-xonotic \
--default-config config-1 --no-dry-run
kubectl get fleet
gcloud compute firewall-rules create gcgs-xonotic-firewall \
--network demo-vpc \
--allow udp:7000-8000 \
--target-tags game-server \
--description "Firewall to allow game server udp traffic"
kubectl get gameserver