mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-05-12 14:29:39 +00:00
79 lines
2.0 KiB
HCL
79 lines
2.0 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 (used for the provider and node pool location)."
|
|
}
|
|
|
|
variable "zone" {
|
|
type = string
|
|
description = "The GCP zone for the cluster. Using a single zone avoids the longer provisioning time of a regional (multi-zone) cluster."
|
|
}
|
|
|
|
# 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"
|
|
}
|
|
}
|
|
|
|
# Tests node pool (spot, scales to zero)
|
|
variable "tests_pool_name" {
|
|
type = string
|
|
description = "Name for the tests node pool."
|
|
}
|
|
|
|
variable "tests_pool_machine_type" {
|
|
type = string
|
|
description = "The GCE machine type for nodes in the tests pool."
|
|
}
|
|
|
|
variable "tests_pool_max" {
|
|
type = number
|
|
description = "Maximum number of nodes in the tests pool."
|
|
}
|
|
|
|
variable "tests_pool_labels" {
|
|
type = map(string)
|
|
description = "Kubernetes labels to apply to nodes in the tests pool."
|
|
default = {}
|
|
}
|
|
|
|
variable "tests_pool_zones" {
|
|
type = list(string)
|
|
description = "Zones for the tests node pool. Spanning multiple zones increases spot instance availability."
|
|
default = []
|
|
}
|