-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathterraform.tfvars.sample
106 lines (91 loc) · 2.8 KB
/
terraform.tfvars.sample
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Copyright 2023 Google LLC All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
project = "PROJECT_ID"
# VPC Regions & associated subnet CIDRs Values
vpc_name = "global-game-vpc"
vpc_regions = {
"us-central1" : {
"vpc_subnet_cidr" : "10.1.0.0/16"
},
"europe-west1" : {
"vpc_subnet_cidr" : "10.4.0.0/16"
},
"asia-east1" : {
"vpc_subnet_cidr" : "10.8.0.0/16"
}
}
# Game GKE Cluster Config Values
### NOTE: If you change the GKE Clusters, please make sure to change `cloudbuild.yaml` in
### `agones/install` & `deploy/agones/endpoint-patch/` as they are not dynamically created.
game_gke_clusters = {
"global-game-us-central1-01" : {
"region" : "us-central1",
"machine_type" : "e2-standard-4"
},
"global-game-us-central1-02" : {
"region" : "us-central1",
"machine_type" : "e2-standard-4"
},
"global-game-eu-west1-01" : {
"region" : "europe-west1",
"machine_type" : "e2-standard-4"
},
"global-game-asia-east1-01" : {
"region" : "asia-east1",
"machine_type" : "e2-standard-4"
}
}
# GCP APIs to Enable
gcp_project_services = [
"clouddeploy.googleapis.com",
"cloudbuild.googleapis.com",
"compute.googleapis.com",
"container.googleapis.com",
"gameservices.googleapis.com",
"artifactregistry.googleapis.com",
"spanner.googleapis.com",
"secretmanager.googleapis.com",
"servicecontrol.googleapis.com",
"run.googleapis.com"
]
# Spanner DB Config Values
spanner_config = {
db_name = "global-game-spanner-db"
instance_name = "global-game-spanner-instance"
location = "nam-eur-asia1"
num_nodes = 3
}
# Spanner GKE Config Values
spanner_gke_config = {
cluster_name = "global-game-gke-spanner"
location = "us-central1"
resource_labels = {
environment = "staging"
}
}
# Agones Application Service Account Name
app_service_account_config = {
name = "app-service-account"
description = "Global Multiplayer Game service account"
}
# Agones GKE Service Account Name
k8s_service_account_id = "k8s-service-account"
# Agones Allocation Endpoint Config Values
allocation_endpoint = {
name = "agones-allocation-endpoint"
proxy_image = "us-docker.pkg.dev/agones-images/examples/allocation-endpoint-proxy:0.3"
weight = 100
namespace = "default"
agones_namespace = "agones-system"
}