diff --git a/control_plane/main.tf b/control_plane/main.tf index 8daca89..d008444 100644 --- a/control_plane/main.tf +++ b/control_plane/main.tf @@ -99,12 +99,12 @@ resource "talos_machine_secrets" "this" {} data "talos_machine_configuration" "this" { cluster_name = "${var.cluster_name}" machine_type = "controlplane" - cluster_endpoint = "https://10.5.0.0:6443" + cluster_endpoint = "https://10.5.0.1:6443" machine_secrets = talos_machine_secrets.this.machine_secrets } data "talos_client_configuration" "this" { - cluster_name = "example-cluster" + cluster_name = "${var.cluster_name}" client_configuration = talos_machine_secrets.this.client_configuration nodes = ["10.5.0.2"] }