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:
+1
-1
@@ -47,7 +47,7 @@ if [ -f "kubeconfig" ]; then
|
||||
# Detectar arch dos nodes para filtrar instance type correto
|
||||
NODE_ARCH=$(kubectl get nodes -o jsonpath='{.items[0].metadata.labels.kubernetes\.io/arch}' 2>/dev/null || echo "arm64")
|
||||
if [[ "$NODE_ARCH" == "amd64" ]]; then
|
||||
INSTANCE_PATTERN="cpx"
|
||||
INSTANCE_PATTERN="cx"
|
||||
else
|
||||
INSTANCE_PATTERN="cax"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user