2022-10-06 05:51:26 -04:00
variable " name " {
type = string
description = " Base name of the cluster. "
}
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
}
variable " location " {
type = string
description = " The Azure location to deploy the cluster in. "
}
2023-06-22 10:53:40 -04:00
variable " image_id " {
2022-10-06 05:51:26 -04:00
type = string
2023-06-22 10:53:40 -04:00
description = " The image to use for the cluster nodes. "
2022-10-06 05:51:26 -04:00
}
2023-06-22 10:53:40 -04:00
variable " create_maa " {
type = bool
default = false
description = " Whether to create a Microsoft Azure attestation provider. "
2022-10-06 05:51:26 -04:00
}
2023-06-22 10:53:40 -04:00
variable " debug " {
type = bool
default = false
description = " Enable debug mode. This opens up a debugd port that can be used to deploy a custom bootstrapper. "
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
description = " The name of the Azure resource group to create the Constellation cluster in. "
2023-03-20 08:33:04 -04:00
}
2023-06-22 10:53:40 -04:00
variable " user_assigned_identity " {
type = string
2023-08-01 02:40:44 -04:00
description = " The 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 "
2022-10-06 05:51:26 -04:00
}
2023-07-21 10:43:51 -04:00
variable " custom_endpoint " {
type = string
default = " "
description = " Custom endpoint to use for the Kubernetes apiserver. If not set, the default endpoint will be used. "
}
2023-10-17 09:46:15 -04:00
variable " internal_load_balancer " {
type = bool
default = false
description = " Whether to use an internal load balancer for the Constellation. "
}
2023-12-08 08:40:31 -05:00
variable " marketplace_image " {
type = object ( {
name = string
publisher = string
product = string
version = string
} )
default = null
description = " Marketplace image to use for the cluster nodes. "
}