fix(aula-08): prevenir volume stalling com CSI tolerations e PDB

- Adicionar hcloud-csi-values.yaml com tolerations para node failures
- Configurar 2 replicas do CSI controller para HA
- Criar statefulset-pdb.yaml para proteger StatefulSets durante drain
- Documentar troubleshooting de volumes stuck no README
This commit is contained in:
ArgoCD Setup
2026-01-23 18:45:00 -03:00
parent 9f96e97205
commit 2480c82944
4 changed files with 74 additions and 3 deletions

View File

@@ -534,6 +534,7 @@ log_info "Instalando CSI Driver via Helm..."
helm upgrade --install hcloud-csi hcloud/hcloud-csi \
-n kube-system \
-f "$SCRIPT_DIR/hcloud-csi-values.yaml" \
--wait \
--timeout 5m
@@ -543,6 +544,11 @@ log_success "Hetzner CSI Driver instalado!"
log_info "Verificando StorageClass..."
kubectl get storageclass hcloud-volumes
# Configurar PDB para StatefulSets (protecao durante drain)
log_info "Criando PodDisruptionBudget para StatefulSets..."
kubectl apply -f "$SCRIPT_DIR/statefulset-pdb.yaml"
log_success "PDB criado"
echo ""
############################################################