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

     1  # Copyright 2019 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      "location"                      = "us-west1-c"
    24      "name"                          = "test-cluster"
    25      "machineType"                   = "e2-standard-4"
    26      "initialNodeCount"              = "4"
    27      "project"                       = "agones"
    28      "network"                       = "default"
    29      "subnetwork"                    = ""
    30      "releaseChannel"                = "UNSPECIFIED"
    31      "kubernetesVersion"             = "1.32"
    32      "windowsInitialNodeCount"       = "0"
    33      "windowsMachineType"            = "e2-standard-4"
    34      "autoscale"                     = false
    35      "workloadIdentity"              = false
    36      "minNodeCount"                  = "1"
    37      "maxNodeCount"                  = "5"
    38      "maintenanceExclusionStartTime" = null
    39      "maintenanceExclusionEndTime"   = null
    40    }
    41  }
    42  
    43  # udpFirewall specifies whether to create a UDP firewall named
    44  # `firewallName` with port range `ports`, source range `sourceRanges` 
    45  variable "udpFirewall" {
    46    default = true
    47  }
    48  
    49  # Ports can be overriden using tfvars file
    50  variable "ports" {
    51    default = "7000-8000"
    52  }
    53  
    54  # SourceRanges can be overriden using tfvars file
    55  variable "sourceRanges" {
    56    default = "0.0.0.0/0"
    57  }
    58  
    59  variable "firewallName" {
    60    description = "name for the cluster firewall. Defaults to 'game-server-firewall-{local.name}' if not set."
    61    type        = string
    62    default     = ""
    63  }
    64  
    65  # enable_agones_metrics_nodepool specifies whether to enable agones-metrics node pool
    66  # By default it is disabled
    67  variable "enable_agones_metrics_nodepool" {
    68    description = "enable or disable the creation of agones-metrics node pool."
    69    default     = false
    70  }