Skip to content

Instantly share code, notes, and snippets.

@arashkaffamanesh
Last active August 16, 2020 12:49
Show Gist options
  • Save arashkaffamanesh/9fcdc1d22f5a71c08aefc64bd04e20ad to your computer and use it in GitHub Desktop.
Save arashkaffamanesh/9fcdc1d22f5a71c08aefc64bd04e20ad to your computer and use it in GitHub Desktop.
worker_groups_launch_template = [
{
name = "spot-1"
# override_instance_types = ["m5.large", "m5a.large", "m5d.large", "m5ad.large"]
override_instance_types = ["t3a.medium", "t3.medium"]
spot_instance_pools = 2
asg_max_size = 3
asg_desired_capacity = 1
kubelet_extra_args = "--node-labels=node.kubernetes.io/lifecycle=spot"
public_ip = true
},
{
name = "on-demand"
instance_type = "t3a.medium"
additional_userdata = "echo foo bar"
asg_max_size = 2
asg_min_size = 1
asg_desired_capacity = 1
kubelet_extra_args = "--node-labels=kubernetes.io/lifecycle=monitoring"
public_ip = true
# additional_security_group_ids = [aws_security_group.worker_group_mgmt_one.id]
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment