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
|
|
|
|
disk_size = var.disk_size
|
|
|
|
preemptible = var.worker_preemptible
|
2018-04-12 08:19:35 +02:00
|
|
|
|
|
|
|
# configuration
|
2019-09-15 01:24:32 +02:00
|
|
|
kubeconfig = module.bootstrap.kubeconfig-kubelet
|
2019-05-28 06:14:25 +02:00
|
|
|
ssh_authorized_key = var.ssh_authorized_key
|
|
|
|
service_cidr = var.service_cidr
|
|
|
|
cluster_domain_suffix = var.cluster_domain_suffix
|
2020-04-01 06:42:51 +02:00
|
|
|
snippets = var.worker_snippets
|
2019-09-28 23:59:24 +02:00
|
|
|
node_labels = var.worker_node_labels
|
2018-04-12 08:19:35 +02:00
|
|
|
}
|
2019-05-28 06:14:25 +02:00
|
|
|
|