Kubernetes Stabilizer
Automatically identifies and fixes unhealthy pods in a Kubernetes cluster to ensure all workloads are running as expected. This loop continuously monitors po…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "Kubernetes Stabilizer" loop.
Goal: Fix unhealthy pods
Max iterations: 10
Between iterations run: kubectl get pods
Exit when: All pods healthy
Begin the Kubernetes Stabilizer loop: Check pod health using 'kubectl get pods', identify any unhealthy pods, diagnose their issues, apply appropriate fixes within guardrails, wait for changes to propagate, and re-check until all pods are healthy or max iterations (10) are reached. Prioritize safety by avoiding system namespaces and requiring confirmation for destructive actions.
Self-pace this loop. After each iteration, run `kubectl get pods` and evaluate the output, and only continue if the exit condition is not met (All pods healthy). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.