From 50a19077ab2201936dfd0edcd112620d1ad86e37 Mon Sep 17 00:00:00 2001 From: Anatolios Laskaris Date: Sun, 24 Nov 2024 19:49:53 +0200 Subject: [PATCH] Update --- terraform/controlplane.tf | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/terraform/controlplane.tf b/terraform/controlplane.tf index a182a866..718d7401 100644 --- a/terraform/controlplane.tf +++ b/terraform/controlplane.tf @@ -135,22 +135,22 @@ resource "talos_cluster_kubeconfig" "this" { node = digitalocean_droplet.cp["cp-0"].ipv4_address } -data "talos_cluster_health" "health" { - client_configuration = data.talos_client_configuration.this.client_configuration - control_plane_nodes = [for droplet in digitalocean_droplet.cp : droplet.ipv4_address] - endpoints = data.talos_client_configuration.this.endpoints +# data "talos_cluster_health" "health" { +# client_configuration = data.talos_client_configuration.this.client_configuration +# control_plane_nodes = [for droplet in digitalocean_droplet.cp : droplet.ipv4_address] +# endpoints = data.talos_client_configuration.this.endpoints +# } + +data "http" "talos_health" { + for_each = toset([ + "cp-0.${local.prefix}.fluence.dev", + ]) + url = "https://${each.key}:6443/version" + insecure = true + retry { + attempts = 60 + min_delay_ms = 5000 + max_delay_ms = 5000 + } + depends_on = [talos_machine_bootstrap.this] } - - data "http" "talos_health" { - for_each = toset([ - "cp-0.${local.prefix}.fluence.dev", - ]) - url = "https://${each.key}:6443/version" - insecure = true - retry { - attempts = 60 - min_delay_ms = 5000 - max_delay_ms = 5000 - } - depends_on = [talos_machine_bootstrap.this] - }