Skip to content

Commit

Permalink
Add subnetwork to configurable parameters
Browse files Browse the repository at this point in the history
Document the subnetwork as a configurable parameter.

* Gated until 1.9.0
* Updated agones_version references to 1.8.0
  • Loading branch information
moesy committed Aug 28, 2020
1 parent 44aae3e commit b947294
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/terraform-submodules/gke/.gitignore

This file was deleted.

9 changes: 6 additions & 3 deletions site/content/en/docs/Installation/Terraform/gke.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ Configurable parameters:
- zone - the name of the [zone](https://cloud.google.com/compute/docs/regions-zones) you want your cluster to be
created in (default is "us-west1-c")
- network - the name of the VPC network you want your cluster and firewall rules to be connected to (default is "default")
{{% feature publishVersion="1.9.0" %}}
- subnetwork - the name of the subnetwork in which the cluster's instances are launched. (required when using non default network)
{{% /feature %}}
- log_level - possible values: Fatal, Error, Warn, Info, Debug (default is "info")
- feature_gates - a list of alpha and beta version features to enable. For example, "PlayerTracking=true&ContainerPortAllocation=true"
- gameserver_minPort - the lower bound of the port range which gameservers will listen on (default is "7000")
Expand Down Expand Up @@ -121,7 +124,7 @@ gcloud auth application-default login
{{% feature expiryVersion="1.9.0" %}}
Now you can create your GKE cluster (optionally specifying the version of Agones you want to use):
```
terraform apply -var project="<YOUR_GCP_ProjectID>" [-var agones_version="1.0.0"]
terraform apply -var project="<YOUR_GCP_ProjectID>" [-var agones_version="1.8.0"]
```
{{% /feature %}}
Expand All @@ -131,15 +134,15 @@ To create your GKE cluster in the default VPC just specify the project variable.
(optionally you can specify the version of Agones you want to use):
```
terraform apply -var project="<YOUR_GCP_ProjectID>" [-var agones_version="1.7.0"]
terraform apply -var project="<YOUR_GCP_ProjectID>" [-var agones_version="1.8.0"]
```
#### Option 2: Creating the cluster in a custom VPC
To create the cluster in a custom VPC you must specify the project, network and subnetwork variables.
(optionally you can specify the version of Agones you want to use):
```
terraform apply -var project="<YOUR_GCP_ProjectID>" -var network="<YOUR_NETWORK_NAME>" -var subnetwork="<YOUR_SUBNETWORK_NAME>" [-var agones_version="1.7.0"]
terraform apply -var project="<YOUR_GCP_ProjectID>" -var network="<YOUR_NETWORK_NAME>" -var subnetwork="<YOUR_SUBNETWORK_NAME>" [-var agones_version="1.8.0"]
```
{{% /feature %}}
Expand Down

0 comments on commit b947294

Please sign in to comment.