mirror of
https://github.com/poseidon/typhoon
synced 2025-07-08 04:44:21 +02:00
* AWS IPv4 address pricing is quite high compared to other clouds, and an NLB unavoidably uses at least 3. * Unlike Azure's nice outbound through LB options, AWS has only NAT options which are even more costly than IPv4 in budget clusters. Another option is to simply forget about accessing nodes via IPv4 or outbound IPv4 internet access (tradeoff: GitHub is a notable website that only serves via IPv4, so cut ties)
32 lines
912 B
HCL
32 lines
912 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]
|
|
|
|
# instances
|
|
os_stream = var.os_stream
|
|
worker_count = var.worker_count
|
|
instance_type = var.worker_type
|
|
arch = var.worker_arch
|
|
disk_type = var.worker_disk_type
|
|
disk_size = var.worker_disk_size
|
|
disk_iops = var.worker_disk_iops
|
|
cpu_credits = var.worker_cpu_credits
|
|
spot_price = var.worker_price
|
|
target_groups = var.worker_target_groups
|
|
|
|
associate_public_ipv4_address = var.worker_public_ipv4
|
|
|
|
# configuration
|
|
kubeconfig = module.bootstrap.kubeconfig-kubelet
|
|
ssh_authorized_key = var.ssh_authorized_key
|
|
service_cidr = var.service_cidr
|
|
snippets = var.worker_snippets
|
|
node_labels = var.worker_node_labels
|
|
}
|
|
|