mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-25 17:39:33 +01:00
cc29530ba0
* Add `worker_price` to allow worker spot instances. Defaults to empty string for the worker autoscaling group to use regular on-demand instances. * Add `spot_price` to internal `workers` module for spot worker pools * Note: Unlike GCP `preemptible` workers, spot instances require you to pick a bid price.
20 lines
634 B
HCL
20 lines
634 B
HCL
module "workers" {
|
|
source = "workers"
|
|
name = "${var.cluster_name}"
|
|
|
|
# AWS
|
|
vpc_id = "${aws_vpc.network.id}"
|
|
subnet_ids = ["${aws_subnet.public.*.id}"]
|
|
security_groups = ["${aws_security_group.worker.id}"]
|
|
count = "${var.worker_count}"
|
|
instance_type = "${var.worker_type}"
|
|
disk_size = "${var.disk_size}"
|
|
spot_price = "${var.worker_price}"
|
|
|
|
# configuration
|
|
kubeconfig = "${module.bootkube.kubeconfig}"
|
|
ssh_authorized_key = "${var.ssh_authorized_key}"
|
|
service_cidr = "${var.service_cidr}"
|
|
cluster_domain_suffix = "${var.cluster_domain_suffix}"
|
|
}
|