2023-06-19 07:02:01 -04:00
|
|
|
variable "base_name" {
|
2022-09-26 08:11:52 -04:00
|
|
|
type = string
|
|
|
|
description = "Base name of the instance group."
|
|
|
|
}
|
|
|
|
|
2023-06-19 07:02:01 -04:00
|
|
|
variable "node_group_name" {
|
|
|
|
type = string
|
|
|
|
description = "Constellation name for the node group (used for configuration and CSP-independent naming)."
|
|
|
|
}
|
|
|
|
|
2022-09-26 08:11:52 -04:00
|
|
|
variable "role" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Role of the instance group."
|
2023-01-27 06:59:25 -05:00
|
|
|
validation {
|
2023-06-23 06:08:30 -04:00
|
|
|
condition = contains(["control-plane", "worker"], var.role)
|
|
|
|
error_message = "The role has to be 'control-plane' or 'worker'."
|
2023-01-27 06:59:25 -05:00
|
|
|
}
|
2022-09-26 08:11:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "uid" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Unique Identifier (UID) of the cluster."
|
2022-09-26 08:11:52 -04:00
|
|
|
}
|
|
|
|
|
2022-10-24 10:58:21 -04:00
|
|
|
variable "labels" {
|
|
|
|
type = map(string)
|
|
|
|
default = {}
|
|
|
|
description = "Labels to apply to the instance group."
|
|
|
|
}
|
|
|
|
|
2022-09-26 08:11:52 -04:00
|
|
|
variable "instance_type" {
|
|
|
|
type = string
|
|
|
|
description = "Instance type for the nodes."
|
|
|
|
}
|
|
|
|
|
2023-06-30 04:53:00 -04:00
|
|
|
variable "initial_count" {
|
2022-09-26 08:11:52 -04:00
|
|
|
type = number
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Number of instances in the group."
|
2022-09-26 08:11:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "image_id" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "OS Image reference for the cluster's nodes."
|
2022-09-26 08:11:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "disk_size" {
|
|
|
|
type = number
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Disk size for the state disk of the nodes [GB]."
|
2022-09-26 08:11:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "disk_type" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Disk type for the nodes. Has to be either 'pd-standard' or 'pd-ssd'."
|
2022-09-26 08:11:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "network" {
|
|
|
|
type = string
|
|
|
|
description = "Name of the network to use."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "subnetwork" {
|
|
|
|
type = string
|
|
|
|
description = "Name of the subnetwork to use."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "kube_env" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Value of the \"kube-env\" metadata key."
|
2022-09-26 08:11:52 -04:00
|
|
|
}
|
|
|
|
|
2022-11-26 13:44:34 -05:00
|
|
|
variable "init_secret_hash" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "BCrypt Hash of the initialization secret."
|
2022-11-26 13:44:34 -05:00
|
|
|
}
|
|
|
|
|
2022-09-26 08:11:52 -04:00
|
|
|
variable "named_ports" {
|
|
|
|
type = list(object({ name = string, port = number }))
|
|
|
|
default = []
|
|
|
|
description = "Named ports for the instance group."
|
|
|
|
}
|
2022-09-27 11:04:26 -04:00
|
|
|
|
|
|
|
variable "debug" {
|
|
|
|
type = bool
|
|
|
|
default = false
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "DO NOT USE IN PRODUCTION. Enable debug mode. This opens up a debugd port that can be used to deploy a custom bootstrapper."
|
2022-09-27 11:04:26 -04:00
|
|
|
}
|
2023-03-21 17:56:03 -04:00
|
|
|
|
|
|
|
variable "alias_ip_range_name" {
|
|
|
|
type = string
|
|
|
|
description = "Name of the alias IP range to use."
|
|
|
|
}
|
2023-06-19 07:02:01 -04:00
|
|
|
|
|
|
|
variable "zone" {
|
|
|
|
type = string
|
|
|
|
description = "Zone to deploy the instance group in."
|
|
|
|
}
|
2023-07-21 10:43:51 -04:00
|
|
|
|
|
|
|
variable "custom_endpoint" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Custom endpoint to use for the Kubernetes API server. If not set, the default endpoint will be used."
|
2023-07-21 10:43:51 -04:00
|
|
|
}
|