Outputs for convenience sake

This commit is contained in:
shockrah 2024-04-24 00:42:44 -07:00
parent 31a5323028
commit fc178a7ed2
2 changed files with 8 additions and 0 deletions

3
lab/cluster/output.tf Normal file
View File

@ -0,0 +1,3 @@
output hello_address {
value = "${var.cluster_dns}:${kubernetes_service.nginx_plain.spec.0.port.0.port}"
}

5
lab/cluster/variables.tf Normal file
View File

@ -0,0 +1,5 @@
variable cluster_dns {
default = "cluster.local"
type = string
}