# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 variable "cluster_name" { description = "The name of the cluster" type = string } variable "karpenter_namespace" { description = "The K8S namespace to deploy Karpenter into" default = "karpenter" type = string } variable "karpenter_version" { description = "Karpenter Version" default = "0.10.0" type = string } variable "karpenter_target_nodegroup" { description = "The node group to deploy Karpenter to" type = string } variable "bottlerocket_k8s_version" { description = "Kubernetes version for Bottlerocket AMI" default = "1.22" type = string } variable "karpenter_ec2_instance_types" { description = "List of instance types that can be used by Karpenter" type = list(string) } variable "karpenter_vpc_az" { description = "List of availability zones for the Karpenter to provision resources" type = list(string) default = ["ap-southeast-1a", "ap-southeast-1b", "ap-southeast-1c"] } variable "karpenter_ec2_arch" { description = "List of CPU architecture for the EC2 instances provisioned by Karpenter" type = list(string) default = ["amd64"] } variable "karpenter_ec2_capacity_type" { description = "EC2 provisioning capacity type" type = list(string) default = ["spot", "on-demand"] } variable "karpenter_ttl_seconds_after_empty" { description = "Node lifetime after empty" type = number } variable "karpenter_ttl_seconds_until_expired" { description = "Node maximum lifetime" type = number }