2023-12-15 04:36:58 -05:00
# Variables common to all CSPs
2022-10-06 05:51:26 -04:00
variable " name " {
type = string
2023-12-15 04:36:58 -05:00
description = " Name of the Constellation cluster. "
2022-10-06 05:51:26 -04:00
}
2023-06-22 10:53:40 -04:00
variable " node_groups " {
type = map ( object ( {
2023-06-30 04:53:00 -04:00
role = string
initial_count = optional ( number )
instance_type = string
disk_size = number
disk_type = string
zones = optional ( list ( string ) )
2023-06-22 10:53:40 -04:00
} ) )
description = " A map of node group names to node group configurations. "
validation {
condition = can ( [ for group in var . node_groups : group . role == " control-plane " | | group . role == " worker " ] )
error_message = " The role has to be 'control-plane' or 'worker'. "
}
2022-10-06 05:51:26 -04:00
}
2023-12-15 04:36:58 -05:00
variable " image_id " {
2022-10-06 05:51:26 -04:00
type = string
2023-12-15 04:36:58 -05:00
description = " OS image reference for the cluster's nodes. "
2022-10-06 05:51:26 -04:00
}
2023-12-15 04:36:58 -05:00
variable " debug " {
type = bool
default = false
description = " DO NOT USE IN PRODUCTION. Enable debug mode. This opens up a debugd port that can be used to deploy a custom bootstrapper. "
}
variable " custom_endpoint " {
2022-10-06 05:51:26 -04:00
type = string
2023-12-15 04:36:58 -05:00
default = " "
description = " Custom endpoint to use for the Kubernetes API server. If not set, the default endpoint will be used. "
2022-10-06 05:51:26 -04:00
}
2023-12-15 04:36:58 -05:00
variable " internal_load_balancer " {
2023-06-22 10:53:40 -04:00
type = bool
default = false
2023-12-15 04:36:58 -05:00
description = " Whether to use an internal load balancer for the cluster. "
2022-10-06 05:51:26 -04:00
}
2023-12-15 04:36:58 -05:00
# Azure-specific variables
variable " location " {
type = string
description = " Azure location to deploy the cluster in. "
}
variable " create_maa " {
2023-06-22 10:53:40 -04:00
type = bool
default = false
2023-12-15 04:36:58 -05:00
description = " Whether to create a Microsoft Azure Attestation (MAA) provider. "
2022-10-06 05:51:26 -04:00
}
variable " confidential_vm " {
type = bool
default = true
description = " Whether to deploy the cluster nodes as confidential VMs. "
}
2022-10-19 07:10:15 -04:00
variable " secure_boot " {
type = bool
default = false
description = " Whether to deploy the cluster nodes with secure boot. "
}
2023-06-22 10:53:40 -04:00
variable " resource_group " {
type = string
2023-12-15 04:36:58 -05:00
description = " Name of the Azure resource group to create the cluster in. "
2022-10-06 05:51:26 -04:00
}
2023-07-21 10:43:51 -04:00
2023-12-15 04:36:58 -05:00
variable " user_assigned_identity " {
2023-07-21 10:43:51 -04:00
type = string
2023-12-15 04:36:58 -05:00
description = " Name of the user assigned identity to attach to the nodes of the cluster. Should be of format: /subscriptions/ $ ID/resourceGroups/ $ RG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ $ NAME "
2023-10-17 09:46:15 -04:00
}
2023-12-08 08:40:31 -05:00
variable " marketplace_image " {
type = object ( {
name = string
publisher = string
product = string
version = string
} )
default = null
2023-12-15 04:36:58 -05:00
description = " Marketplace image for the cluster's nodes. "
2023-12-08 08:40:31 -05:00
}
2024-04-19 05:07:57 -04:00
variable " additional_tags " {
type = map ( any )
2024-05-03 04:27:46 -04:00
default = { }
2024-04-19 05:07:57 -04:00
description = " Additional tags that should be applied to created resources. "
}