Last active
August 16, 2020 12:49
-
-
Save arashkaffamanesh/9fcdc1d22f5a71c08aefc64bd04e20ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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