Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nahsi committed Nov 24, 2024
1 parent 4b485f5 commit 50a1907
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions terraform/controlplane.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}

0 comments on commit 50a1907

Please sign in to comment.