2018-04-12 08:19:35 +02:00
|
|
|
module "workers" {
|
2019-05-04 21:27:22 +02:00
|
|
|
source = "./workers"
|
2019-05-28 06:14:25 +02:00
|
|
|
name = var.cluster_name
|
|
|
|
cluster_name = var.cluster_name
|
2018-04-12 08:19:35 +02:00
|
|
|
|
|
|
|
# GCE
|
2019-05-28 06:14:25 +02:00
|
|
|
region = var.region
|
|
|
|
network = google_compute_network.network.name
|
|
|
|
worker_count = var.worker_count
|
|
|
|
machine_type = var.worker_type
|
|
|
|
os_image = var.os_image
|
2024-08-02 19:08:32 +02:00
|
|
|
disk_size = var.worker_disk_size
|
2019-05-28 06:14:25 +02:00
|
|
|
preemptible = var.worker_preemptible
|
2018-04-12 08:19:35 +02:00
|
|
|
|
|
|
|
# configuration
|
2024-08-03 00:01:48 +02:00
|
|
|
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
|
2018-04-12 08:19:35 +02:00
|
|
|
}
|
2019-05-28 06:14:25 +02:00
|
|
|
|