Outputs for convenience sake
This commit is contained in:
3
lab/cluster/output.tf
Normal file
3
lab/cluster/output.tf
Normal 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
5
lab/cluster/variables.tf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
variable cluster_dns {
|
||||||
|
default = "cluster.local"
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user