-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathworker.tf
62 lines (57 loc) · 2.4 KB
/
worker.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module "k8s_worker" {
source = "./worker"
#Dependencies
apiserver_ready = module.k8s_master.apiserver_ready
cluster_ready = module.k8s_cluster
#Variables
root_size = var.worker_root_size
worker_count = var.worker_count
worker_max = max(var.worker_max, var.worker_count)
worker_type = var.worker_type
image_desc = var.image_desc
region = var.region
kubernetes_release = var.kubernetes_release
critools_release = var.critools_release
internal_cluster_fqdn = local.cluster_fqdn
apiserver_service_port = local.service_port
worker_drain_timeout = var.worker_drain_timeout
worker_name = var.worker_name
worker_zone = var.worker_zone
#Injections
cluster_server_group = module.k8s_cluster.group_id
bastion = module.k8s_master.bastion
bastion_user = module.k8s_master.bastion_user
apiserver_fqdn = module.k8s_master.apiserver
ca_cert_pem = tls_self_signed_cert.k8s_ca.cert_pem
boot_token = module.k8s_master.boot_token
additional_server_groups = var.additional_server_groups
}
module "k8s_storage" {
source = "./worker"
#Dependencies
apiserver_ready = module.k8s_master.apiserver_ready
cluster_ready = module.k8s_cluster
#Variables
root_size = var.storage_root_size
worker_count = var.storage_count
worker_max = max(var.storage_max, var.storage_count)
worker_type = var.storage_type
image_desc = var.image_desc
region = var.region
kubernetes_release = var.kubernetes_release
critools_release = var.critools_release
internal_cluster_fqdn = local.cluster_fqdn
apiserver_service_port = local.service_port
worker_drain_timeout = var.worker_drain_timeout
worker_name = var.storage_name
worker_zone = var.storage_zone
storage_system = var.storage_system
#Injections
cluster_server_group = module.k8s_cluster.group_id
bastion = module.k8s_master.bastion
bastion_user = module.k8s_master.bastion_user
apiserver_fqdn = module.k8s_master.apiserver
ca_cert_pem = tls_self_signed_cert.k8s_ca.cert_pem
boot_token = module.k8s_master.boot_token
additional_server_groups = var.additional_server_groups
}