diff --git a/terraform/README.md b/tofu/README.md similarity index 77% rename from terraform/README.md rename to tofu/README.md index 9051c544..bc28c695 100644 --- a/terraform/README.md +++ b/tofu/README.md @@ -1,5 +1,11 @@ # Harvester +## Install opentofu + +```bash +brew install opentofu +``` + Force delete virtual machine: ```bash diff --git a/terraform/harvester/.terraform.lock.hcl b/tofu/harvester/.terraform.lock.hcl similarity index 100% rename from terraform/harvester/.terraform.lock.hcl rename to tofu/harvester/.terraform.lock.hcl diff --git a/terraform/harvester/main.tf b/tofu/harvester/main.tf similarity index 91% rename from terraform/harvester/main.tf rename to tofu/harvester/main.tf index c462c2ff..cdd9a64c 100644 --- a/terraform/harvester/main.tf +++ b/tofu/harvester/main.tf @@ -19,162 +19,167 @@ locals { "kube-master-00" = { mac_address = "00:16:3E:3C:0D:00" // 192.168.1.150 cpu = 4 - memory = "16Gi" + memory = "32Gi" } "kube-master-01" = { mac_address = "00:16:3E:3C:0D:01" // 192.168.1.151 cpu = 4 - memory = "16Gi" + memory = "32Gi" } "kube-master-02" = { mac_address = "00:16:3E:3C:0D:02" // 192.168.1.152 cpu = 4 - memory = "16Gi" + memory = "32Gi" } "kube-worker-00" = { mac_address = "00:16:3E:3C:0E:00" // 192.168.1.160 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-01" = { mac_address = "00:16:3E:3C:0E:01" // 192.168.1.161 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-02" = { mac_address = "00:16:3E:3C:0E:02" // 192.168.1.162 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-03" = { mac_address = "00:16:3E:3C:0E:03" // 192.168.1.163 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-04" = { mac_address = "00:16:3E:3C:0E:04" // 192.168.1.164 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-05" = { mac_address = "00:16:3E:3C:0E:05" // 192.168.1.165 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-06" = { mac_address = "00:16:3E:3C:0E:06" // 192.168.1.166 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-07" = { mac_address = "00:16:3E:3C:0E:07" // 192.168.1.167 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-08" = { mac_address = "00:16:3E:3C:0E:08" // 192.168.1.168 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-09" = { mac_address = "00:16:3E:3C:0E:09" // 192.168.1.169 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-10" = { mac_address = "00:16:3E:3C:0E:0A" // 192.168.1.170 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-11" = { mac_address = "00:16:3E:3C:0E:0B" // 192.168.1.171 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-12" = { mac_address = "00:16:3E:3C:0E:0C" // 192.168.1.172 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-13" = { mac_address = "00:16:3E:3C:0E:0D" // 192.168.1.173 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-14" = { mac_address = "00:16:3E:3C:0E:0E" // 192.168.1.174 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-15" = { mac_address = "00:16:3E:3C:0E:0F" // 192.168.1.175 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-16" = { mac_address = "00:16:3E:3C:0E:10" // 192.168.1.176 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-17" = { mac_address = "00:16:3E:3C:0E:11" // 192.168.1.177 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-18" = { mac_address = "00:16:3E:3C:0E:12" // 192.168.1.178 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-19" = { mac_address = "00:16:3E:3C:0E:13" // 192.168.1.179 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-20" = { mac_address = "00:16:3E:3C:0E:14" // 192.168.1.180 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-21" = { mac_address = "00:16:3E:3C:0E:15" // 192.168.1.181 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-22" = { mac_address = "00:16:3E:3C:0E:16" // 192.168.1.182 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-23" = { mac_address = "00:16:3E:3C:0E:17" // 192.168.1.183 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-24" = { mac_address = "00:16:3E:3C:0E:18" // 192.168.1.184 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-25" = { mac_address = "00:16:3E:3C:0E:19" // 192.168.1.185 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-26" = { mac_address = "00:16:3E:3C:0E:1A" // 192.168.1.186 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-27" = { mac_address = "00:16:3E:3C:0E:1B" // 192.168.1.187 cpu = 4 - memory = "8Gi" + memory = "24Gi" } "kube-worker-28" = { mac_address = "00:16:3E:3C:0E:1C" // 192.168.1.188 cpu = 4 - memory = "8Gi" + memory = "24Gi" + } + "kube-worker-29" = { + mac_address = "00:16:3E:3C:0E:1D" // 192.168.1.189 + cpu = 4 + memory = "24Gi" } } } diff --git a/terraform/harvester/templates/ip_pool_internal.yaml b/tofu/harvester/templates/ip_pool_internal.yaml similarity index 100% rename from terraform/harvester/templates/ip_pool_internal.yaml rename to tofu/harvester/templates/ip_pool_internal.yaml diff --git a/terraform/harvester/templates/load_balancer_internal.yaml b/tofu/harvester/templates/load_balancer_internal.yaml similarity index 100% rename from terraform/harvester/templates/load_balancer_internal.yaml rename to tofu/harvester/templates/load_balancer_internal.yaml diff --git a/terraform/rancher/.terraform.lock.hcl b/tofu/rancher/.terraform.lock.hcl similarity index 100% rename from terraform/rancher/.terraform.lock.hcl rename to tofu/rancher/.terraform.lock.hcl diff --git a/terraform/rancher/main.tf b/tofu/rancher/main.tf similarity index 100% rename from terraform/rancher/main.tf rename to tofu/rancher/main.tf