Skip to content

Instantly share code, notes, and snippets.

@arashkaffamanesh
Last active August 16, 2020 12:49
Show Gist options
  • Select an option

  • Save arashkaffamanesh/9fcdc1d22f5a71c08aefc64bd04e20ad to your computer and use it in GitHub Desktop.

Select an option

Save arashkaffamanesh/9fcdc1d22f5a71c08aefc64bd04e20ad to your computer and use it in GitHub Desktop.

Revisions

  1. arashkaffamanesh revised this gist Aug 16, 2020. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions worker_groups_launch_template
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,6 @@ worker_groups_launch_template = [
    kubelet_extra_args = "--node-labels=node.kubernetes.io/lifecycle=spot"
    public_ip = true
    },
    /*
    {
    name = "on-demand"
    instance_type = "t3a.medium"
    @@ -21,6 +20,5 @@ worker_groups_launch_template = [
    public_ip = true
    # additional_security_group_ids = [aws_security_group.worker_group_mgmt_one.id]
    },
    */
    ]
    }
  2. arashkaffamanesh created this gist Aug 16, 2020.
    26 changes: 26 additions & 0 deletions worker_groups_launch_template
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    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]
    },
    */
    ]
    }