terraform-k3s-private-cloud icon indicating copy to clipboard operation
terraform-k3s-private-cloud copied to clipboard

WIP: Abstract worker pools as terraform module

Open inscapist opened this issue 4 years ago • 2 comments

Users should not need to deal with EC2 instances.

expose an interface for users to create a node pool that looks like:

A node pool can run as ondemand or spot-instances

module "worker-pool" {
  source = ".."

  node_pool            = "r6g.medium"
  min_size             = 0
  max_size             = 10
  on_demand_percentage = 0

  equivalent_instance_types = [
    "r6g.large",
    "r5.large",
    "r4.large",
  ]

  target_group_arns      = [] # for egress-ready instances
  cluster_server         = k3s_server._private_dns
  vpc_security_group_ids = module.common.vpc_security_group_ids
  node_pool_tags         = module.common.node_pool_tags
}

inscapist avatar Jan 14 '21 06:01 inscapist

Deprioritized, because this might go against the project's goal of simplicity

inscapist avatar Jan 21 '21 03:01 inscapist

Partially implemented in v0.1.5

  • [x] auto scaling group
  • [x] equivalent_instance_types
  • [x] usage of spot fleet
  • [ ] detached worker pool module

inscapist avatar Mar 26 '21 15:03 inscapist