inscapist / terraform-k3s-private-cloud

Private cluster with k3s. Why have 1 huge complicated cluster (pet) when you can have many simple, cheap clusters (cattle)?
MIT License
114 stars 14 forks source link

WIP: Abstract worker pools as terraform module #4

Open inscapist opened 3 years ago

inscapist commented 3 years ago

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 commented 3 years ago

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

inscapist commented 3 years ago

Partially implemented in v0.1.5