Добавлен код и промты.
This commit is contained in:
24
terraform/modules/k3s-install/outputs.tf
Normal file
24
terraform/modules/k3s-install/outputs.tf
Normal file
@@ -0,0 +1,24 @@
|
||||
output "kubeconfig_path" {
|
||||
description = "Path to the kubeconfig file"
|
||||
value = var.kubeconfig_path
|
||||
}
|
||||
|
||||
output "server_ip" {
|
||||
description = "IP address of the K3s server node"
|
||||
value = var.server_ip
|
||||
}
|
||||
|
||||
output "worker_ips" {
|
||||
description = "IP addresses of the K3s worker nodes"
|
||||
value = var.worker_ips
|
||||
}
|
||||
|
||||
output "cluster_ready" {
|
||||
description = "Indicator that the cluster is ready to use"
|
||||
value = "true"
|
||||
depends_on = [
|
||||
null_resource.install_k3s_server,
|
||||
null_resource.get_k3s_config,
|
||||
null_resource.install_k3s_worker
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user