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:
@@ -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 ""
|
||||
|
||||
############################################################
|
||||
|
||||
Reference in New Issue
Block a user