53 lines
1.3 KiB
HCL

# Main
variable "name" {
type = string
description = "A name for the created resources."
}
variable "project" {
type = string
description = "The GCP project ID."
}
variable "region" {
type = string
description = "The GCP region for the cluster (regional cluster spans 3 zones)."
}
# Kubernetes Control Plane
variable "kubernetes_release_channel" {
type = string
description = "The GKE release channel: RAPID, REGULAR, or STABLE."
default = "STABLE"
}
# Kubernetes default Node Pool
variable "node_pool_name" {
type = string
description = "A name for the default node pool."
}
variable "node_pool_machine_type" {
type = string
description = "The GCE machine type for nodes in the default pool."
}
variable "node_pool_min" {
type = number
description = "Minimum number of nodes per zone in the default pool (autoscaling)."
}
variable "node_pool_max" {
type = number
description = "Maximum number of nodes per zone in the default pool (autoscaling)."
}
variable "node_pool_labels" {
type = map(string)
description = "A map of key/value pairs to apply as Kubernetes labels to nodes in the default pool."
default = {
default-pool = "true"
scaling-type = "auto"
}
}