-
Notifications
You must be signed in to change notification settings - Fork 31
/
outputs.tf
24 lines (19 loc) · 832 Bytes
/
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
#####
# Output
#####
output "minikube_dns" {
description = "DNS hostname of the Minikube"
value = module.minikube.dns
}
output "minikube_ip" {
description = "IP address of the Minikube"
value = module.minikube.public_ip
}
output "copy_config_dns" {
description = "Command for copying the kubeconfig for connecting using DNS address"
value = "To copy the kubectl config file using DNS record, run: 'scp ${module.minikube.ssh_user}@${module.minikube.dns}:${module.minikube.kubeconfig_dns} .kubeconfig'"
}
output "copy_config_ip" {
description = "Command for copying the kubeconfig for connecting using IP address"
value = "To copy the kubectl config file using IP address, run: 'scp ${module.minikube.ssh_user}@${module.minikube.public_ip}:${module.minikube.kubeconfig_ip} .kubeconfig'"
}