From 2507cab7a0f6cb204d917f24f18800a37604097a Mon Sep 17 00:00:00 2001 From: Julius Tens Date: Tue, 10 Sep 2024 01:56:51 +0200 Subject: [PATCH] update legacy cluster endpoint --- cloud-resources/digitalocean.tf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cloud-resources/digitalocean.tf b/cloud-resources/digitalocean.tf index 0d3e597..ef8315d 100644 --- a/cloud-resources/digitalocean.tf +++ b/cloud-resources/digitalocean.tf @@ -6,15 +6,13 @@ provider "digitalocean" { # basic infrastructure -resource "digitalocean_record" "cluster_record" { +resource "digitalocean_record" "cluster_record_legacy" { domain = "public-transport.earth" type = "A" name = "cluster.infra" - value = "51.91.81.181" # todo: create load balancer with terraform and reference its ip address here instead of hardcoding (currently not supported by ovh) + value = module.kube-hetzner.ingress_public_ipv4 } -# todo: ipv6 once ovh or scaleway load balancers support it - resource "digitalocean_record" "tilia_cluster_record_v4" { domain = "public-transport.earth" type = "A"