From 2df78721e449b4d16c7d227834a965bf52a0051f Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 24 Jun 2024 20:52:31 -0700 Subject: [PATCH] Config added to plan generation in outputs --- infra/vultr-kubernetes/build.sh | 2 +- infra/vultr-kubernetes/cluster.tf | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/infra/vultr-kubernetes/build.sh b/infra/vultr-kubernetes/build.sh index cb6caac..fad33ff 100644 --- a/infra/vultr-kubernetes/build.sh +++ b/infra/vultr-kubernetes/build.sh @@ -12,7 +12,7 @@ build_plan() { } deploy_plan() { - echo deploy + terraform apply $plan } help_prompt() { diff --git a/infra/vultr-kubernetes/cluster.tf b/infra/vultr-kubernetes/cluster.tf index 2a6e71c..77f7f5c 100644 --- a/infra/vultr-kubernetes/cluster.tf +++ b/infra/vultr-kubernetes/cluster.tf @@ -12,3 +12,10 @@ resource vultr_kubernetes athens { max_nodes = var.cluster.pool.max } } + +output k8s_config { + value = vultr_kubernetes.athens.kube_config + sensitive = true +} + +