fix: corrigir tipos de servidor AMD (CPX→CX), autoscaler, stdin e cleanup
- Corrigir tipos Hetzner: CPX não existe, usar CX (Intel shared vCPU) - CX23 (2 vCPU, 4GB) equivalente ao CAX11 - CX33 (4 vCPU, 8GB) equivalente ao CAX21 - CX43 (8 vCPU, 16GB) equivalente ao CAX31 - Corrigir location no autoscaler para amd64 (nbg1→fsn1) - Remover gitlab-pool do autoscaler (substituído pelo Gitea) - Aumentar worker-pool max para 30 - Corrigir Floating IP e Load Balancer hardcoded em nbg1 - Corrigir stdin em read interativo: usar < /dev/tty e read -p - Corrigir cleanup de namespace: lidar com Terminating e finalizers - Corrigir CNPG: nome do deployment, secret e endpointURL duplo - Aulas afetadas: 08, 09, 10, 11, 12, 14, 17
This commit is contained in:
+4
-4
@@ -38,14 +38,14 @@ locals {
|
||||
# Endpoint: LoadBalancer IP if enabled, otherwise Floating IP
|
||||
cluster_endpoint_ip = var.enable_loadbalancer ? hcloud_load_balancer.cluster[0].ipv4 : hcloud_floating_ip.control_plane[0].ip_address
|
||||
|
||||
# Arquitetura: mapeia arm64→CAX (Nuremberg) ou amd64→CPX (Frankfurt)
|
||||
# Arquitetura: mapeia arm64→CAX (Nuremberg) ou amd64→CX (Frankfurt)
|
||||
arch_config = {
|
||||
arm64 = {
|
||||
server_type_cp = "cax11"
|
||||
location = "nbg1"
|
||||
}
|
||||
amd64 = {
|
||||
server_type_cp = "cpx21"
|
||||
server_type_cp = "cx23"
|
||||
location = "fsn1"
|
||||
}
|
||||
}
|
||||
@@ -247,7 +247,7 @@ resource "hcloud_floating_ip" "control_plane" {
|
||||
count = var.enable_loadbalancer ? 0 : 1
|
||||
type = "ipv4"
|
||||
name = "${local.cluster_name}-cp-ip"
|
||||
home_location = "nbg1"
|
||||
home_location = local.selected_arch.location
|
||||
labels = local.common_labels
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ resource "hcloud_load_balancer" "cluster" {
|
||||
count = var.enable_loadbalancer ? 1 : 0
|
||||
name = "${local.cluster_name}-lb"
|
||||
load_balancer_type = "lb11"
|
||||
location = "nbg1"
|
||||
location = local.selected_arch.location
|
||||
labels = local.common_labels
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user