All checks were successful
AI Code Review / ai-review (pull_request) Successful in 59s
49 lines
1.5 KiB
HCL
49 lines
1.5 KiB
HCL
# ─── Project / Region ────────────────────────────────────────────────
|
|
|
|
variable "project_id" {
|
|
description = "GCP project ID"
|
|
type = string
|
|
}
|
|
|
|
variable "region" {
|
|
description = "GCP region (e.g., europe-west4, europe-west1)"
|
|
type = string
|
|
}
|
|
|
|
variable "prefix" {
|
|
description = "Prefix for resource names (e.g., clst-dev)"
|
|
type = string
|
|
}
|
|
|
|
# ─── GKE Cluster ─────────────────────────────────────────────────────
|
|
|
|
variable "node_machine_type" {
|
|
description = "GKE node machine type (e.g., e2-standard-2, e2-standard-4)"
|
|
type = string
|
|
}
|
|
|
|
variable "node_count" {
|
|
description = "Number of nodes per zone (regional cluster spawns nodes in each zone)"
|
|
type = number
|
|
}
|
|
|
|
variable "kubernetes_version" {
|
|
description = "GKE Kubernetes version channel (null = STABLE release channel)"
|
|
type = string
|
|
default = null
|
|
}
|
|
|
|
variable "deletion_protection" {
|
|
description = "Prevent cluster deletion (set true for production)"
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
# ─── Labels ──────────────────────────────────────────────────────────
|
|
|
|
variable "labels" {
|
|
description = "Labels applied to all resources"
|
|
type = map(string)
|
|
default = {}
|
|
}
|