Skip to content

Commit a948c5e

Browse files
authored
fix: kubeconfig creation waits for bootstrap (#94)
Kubeconfig depends on bootstrap
1 parent 373c20e commit a948c5e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

terraform-modules/talos/talos.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@ resource "talos_machine_bootstrap" "this" {
6363
}
6464

6565
resource "talos_cluster_kubeconfig" "this" {
66+
depends_on = [talos_machine_bootstrap.this]
6667
client_configuration = talos_machine_secrets.this.client_configuration
6768
node = var.control_planes[0].server_ip
69+
timeouts = {
70+
create = "3m"
71+
}
6872
}
6973

7074
data "http" "talos_health" {

0 commit comments

Comments
 (0)