Skip to content

Commit

Permalink
Upgrade Agones to v1.34 (#188)
Browse files Browse the repository at this point in the history
* Added required DNS settings so cluster is not rebuilt

* Removed deprecated gameservices API enablement

* Upgaded Agones to v1.34
  • Loading branch information
abmarcum authored Aug 22, 2023
1 parent eb0c54f commit 7c89b7d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions infrastructure/agones-gke.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data "google_container_engine_versions" "regions" {
module "agones_gke_standard_clusters" {
for_each = var.game_gke_standard_clusters

source = "git::https://github.com/googleforgames/agones.git//install/terraform/modules/gke/?ref=v1.32.0"
source = "git::https://github.com/googleforgames/agones.git//install/terraform/modules/gke/?ref=v1.34.0"

cluster = {
name = each.key
Expand All @@ -49,7 +49,7 @@ module "agones_gke_standard_clusters" {
module "agones_gke_autopilot_clusters" {
for_each = var.game_gke_autopilot_clusters

source = "git::https://github.com/googleforgames/agones.git//install/terraform/modules/gke-autopilot/?ref=v1.32.0"
source = "git::https://github.com/googleforgames/agones.git//install/terraform/modules/gke-autopilot/?ref=v1.34.0"

cluster = {
name = each.key
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/files/agones/agones-install.yaml.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
helmCharts:
- name: agones
repo: https://agones.dev/chart/stable
version: 1.32.0
version: 1.34.0
releaseName: agones
namespace: agones-system
valuesInline:
Expand Down
6 changes: 6 additions & 0 deletions infrastructure/services-gke.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ resource "google_container_cluster" "services-gke" {
enable_private_endpoint = false
}

dns_config {
cluster_dns = "CLOUD_DNS"
cluster_dns_domain = "cluster.local"
cluster_dns_scope = "CLUSTER_SCOPE"
}

resource_labels = {
"environment" = var.resource_env_label
}
Expand Down
1 change: 0 additions & 1 deletion infrastructure/terraform.tfvars.sample
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ gcp_project_services = [
"cloudresourcemanager.googleapis.com",
"compute.googleapis.com",
"container.googleapis.com",
"gameservices.googleapis.com",
"gkehub.googleapis.com",
"meshca.googleapis.com",
"meshconfig.googleapis.com",
Expand Down

0 comments on commit 7c89b7d

Please sign in to comment.