From 76a47b55a16d6adf51c8f85a453e8eacd2e14fb8 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 27 Feb 2024 23:04:59 -0800 Subject: [PATCH] parameterizing load balancer public ip --- infra/vultr-kubernetes/dns.tf | 7 +++++++ infra/vultr-kubernetes/variables.tf | 3 +++ 2 files changed, 10 insertions(+) diff --git a/infra/vultr-kubernetes/dns.tf b/infra/vultr-kubernetes/dns.tf index cb2d3c7..7a4934a 100644 --- a/infra/vultr-kubernetes/dns.tf +++ b/infra/vultr-kubernetes/dns.tf @@ -10,3 +10,10 @@ resource vultr_dns_record sample_dns { # data = vultr_kubernetes.athens.ip type = "A" } + +resource vultr_dns_record hello_dns { + domain = vultr_dns_domain.temprah_lab.id + name = "hello" + data = "45.32.68.232" + type = "A" +} diff --git a/infra/vultr-kubernetes/variables.tf b/infra/vultr-kubernetes/variables.tf index f5ece85..60446dd 100644 --- a/infra/vultr-kubernetes/variables.tf +++ b/infra/vultr-kubernetes/variables.tf @@ -38,4 +38,7 @@ variable lab_domain { type = string } +variable lb_ip4 { + type = string +}