mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-11 03:26:50 +02:00
Add support for ASG max instance lifetime (#769)
Co-authored-by: Thierno IB. BARRY <ibrahima.br@gmail.com>
This commit is contained in:
1
local.tf
1
local.tf
@@ -79,6 +79,7 @@ locals {
|
||||
spot_allocation_strategy = "lowest-price" # Valid options are 'lowest-price' and 'capacity-optimized'. If 'lowest-price', the Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools. If 'capacity-optimized', the Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity.
|
||||
spot_instance_pools = 10 # "Number of Spot pools per availability zone to allocate capacity. EC2 Auto Scaling selects the cheapest Spot pools and evenly allocates Spot capacity across the number of Spot pools that you specify."
|
||||
spot_max_price = "" # Maximum price per unit hour that the user is willing to pay for the Spot instances. Default is the on-demand price
|
||||
max_instance_lifetime = 0 # Maximum number of seconds instances can run in the ASG. 0 is unlimited.
|
||||
}
|
||||
|
||||
workers_group_defaults = merge(
|
||||
|
||||
Reference in New Issue
Block a user