From fc178a7ed23db196ffa41c01230d22c25482f5e1 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 24 Apr 2024 00:42:44 -0700 Subject: [PATCH] Outputs for convenience sake --- lab/cluster/output.tf | 3 +++ lab/cluster/variables.tf | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 lab/cluster/output.tf create mode 100644 lab/cluster/variables.tf diff --git a/lab/cluster/output.tf b/lab/cluster/output.tf new file mode 100644 index 0000000..64158ce --- /dev/null +++ b/lab/cluster/output.tf @@ -0,0 +1,3 @@ +output hello_address { + value = "${var.cluster_dns}:${kubernetes_service.nginx_plain.spec.0.port.0.port}" +} diff --git a/lab/cluster/variables.tf b/lab/cluster/variables.tf new file mode 100644 index 0000000..9ce4b99 --- /dev/null +++ b/lab/cluster/variables.tf @@ -0,0 +1,5 @@ +variable cluster_dns { + default = "cluster.local" + type = string +} +