-
Notifications
You must be signed in to change notification settings - Fork 12
/
outputs.tf
53 lines (44 loc) · 1.31 KB
/
outputs.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
output "name" {
description = "name of the cluster"
value = var.name
}
output "control_plane_nodes" {
description = "control plane nodes"
value = module.control_plane
}
output "load_balancer" {
description = "load balancer for the control plane"
value = local.use_load_balancer ? hcloud_load_balancer.control_plane[0] : null
}
output "apiserver_url" {
description = "URL for the API server"
value = "https://${local.control_plane_endpoint}:6443"
}
output "client_certificate_data" {
description = "client certificate"
value = local.client_certificate_data
}
output "certificate_authority_data" {
description = "cluster CA certificate"
value = local.certificate_authority_data
}
output "client_key_data" {
description = "client certificate private key"
value = local.client_key_data
sensitive = true
}
output "kubeconfig" {
description = "kubeconfig for the cluster"
value = module.kubeconfig.stdout
sensitive = true
}
output "join_user_data" {
description = "cloud-init user data for additional worker nodes"
value = data.cloudinit_config.join_config.rendered
sensitive = true
}
output "join_command" {
description = "kubeadm join command for additional worker nodes"
value = module.join_config.stdout
sensitive = true
}