agones.dev/agones@v1.53.0/install/terraform/modules/gke-autopilot/variables.tf (about)

     1  # Copyright 2023 Google LLC All Rights Reserved.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  # Set of GKE cluster parameters which defines its name, zone
    16  # and primary node pool configuration.
    17  # It is crucial to set valid ProjectID for "project".
    18  variable "cluster" {
    19    description = "Set of GKE cluster parameters."
    20    type        = map(any)
    21  
    22    default = {
    23      "name"                          = "test-cluster"
    24      "project"                       = "agones"
    25      "location"                      = "us-west1"
    26      "network"                       = "default"
    27      "subnetwork"                    = ""
    28      "releaseChannel"                = "REGULAR"
    29      "kubernetesVersion"             = "1.32"
    30      "deletionProtection"            = true
    31      "maintenanceExclusionStartTime" = null
    32      "maintenanceExclusionEndTime"   = null
    33    }
    34  }
    35  
    36  # udpFirewall specifies whether to create a UDP firewall named
    37  # `firewallName` with port range `ports`, source range `sourceRanges` 
    38  variable "udpFirewall" {
    39    default = true
    40  }
    41  
    42  # Ports can be overriden using tfvars file
    43  variable "ports" {
    44    default = "7000-8000"
    45  }
    46  
    47  # SourceRanges can be overriden using tfvars file
    48  variable "sourceRanges" {
    49    default = "0.0.0.0/0"
    50  }
    51  
    52  variable "firewallName" {
    53    description = "name for the cluster firewall. Defaults to 'game-server-firewall-{local.name}' if not set."
    54    type        = string
    55    default     = ""
    56  }