Guía de Supervivencia del Clúster Kubernetes de Rackspace
Description
Guía de Supervivencia del Clúster Kubernetes de Rackspace agent
Installation
claude install-skill https://github.com/marcuspat/turbo-flow README
Guía de Supervivencia del Clúster Kubernetes de Rackspace
Manejo de Problemas Recurrentes Sin Perder la Cordura
Esta guía es para cuando tu clúster de Rackspace actúa mal (otra vez). Omite la teoría, aquí están las soluciones que realmente funcionan.
Tabla de Contenidos
- undefined
Comandos de Referencia Rápida
Copia y pega estos cuando la mierda golpee el ventilador. Sin explicaciones, solo soluciones.
Problemas de Conexión
# Arreglar token expirado / no puede conectar
unset KUBECONFIG
cp fresh-kubeconfig.yaml ~/.kube/config
chmod 600 ~/.kube/config
kubectl get nodes
# Cambiar a OIDC (tokens auto-refrescantes)
kubectl config use-context jmp_agentics-devpods-1-oidc
Problemas de Pods
# Forzar eliminación de pod atascado
kubectl delete pod -n --force --grace-period=0
# Eliminar todos los pods no en ejecución en un namespace
kubectl delete pods --all -n --force --grace-period=0
# Encontrar todos los pods problemáticos
kubectl get pods -A | grep -v "Running\|Completed"
# Obtener detalles y eventos del pod
kubectl describe pod -n
# Obtener logs del pod
kubectl logs -n
kubectl logs -n --previous
# Seguir logs en tiempo real
kubectl logs -f -n
# Shell en pod
kubectl exec -it -n -- /bin/bash
Verificaciones de Salud del Clúster
# Vista general rápida de salud
kubectl get nodes
kubectl get pods -A | grep -v Running
kubectl get events -A --sort-by='.lastTimestamp' | tail -20
# Uso de recursos
kubectl top nodes
kubectl top pods -A --sort-by=memory | head -10
# Verificar todos los componentes
kubectl get pods -n kube-system
kubectl get pods -n calico-system
kubectl get pods -n calico-apiserver
# Verificar almacenamiento
kubectl get pvc -A
Problemas de Nodos
# Verificar estado del nodo
kubectl get nodes
kubectl describe node
# Acordonar y drenar nodo problemático
kubectl cordon
kubectl drain --ignore-daemonsets --delete-emptydir-data --force
# Desacordonar después de arreglar
kubectl uncordon
Problemas de Red
# Reiniciar CoreDNS
kubectl rollout restart deployment coredns -n kube-system
# Reiniciar Calico
kubectl delete pods -n calico-system --all
kubectl delete pods -n calico-apiserver --all
# Probar DNS desde dentro del clúster
kubectl run -it --rm debug --
Related Agents
Workflow Automate
| You are a workflow automation expert specializing in creating efficient CI/CD pipelines, GitHub Acti... | - | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community terraform-specialist
| You are a Terraform/OpenTofu specialist focused on advanced infrastructure automation, state managem... | opus | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community kubernetes-architect
| You are a Kubernetes architect specializing in cloud-native infrastructure, modern GitOps workflows,... | opus | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community gitlab-ci-patterns
| Comprehensive GitLab CI/CD pipeline patterns for automated testing, building, and deployment. | - | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community secrets-management
| Secure secrets management practices for CI/CD pipelines using Vault, AWS Secrets Manager, and other... | - | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community deployment-pipeline-design
| Architecture patterns for multi-stage CI/CD pipelines with approval gates and deployment strategies. | - | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community