Wiki Mint SystemWiki Mint System
Home
Index
Mint System
Chat
GitHub
Home
Index
Mint System
Chat
GitHub
  • kubectl

kubectl

Delete all pods in failed state.

kubectl get pods --field-selector=status.phase=Failed -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' | \
while read pod; do
    echo "Deleting pod: $pod"
    kubectl delete pod "$pod"
done

Backlinks:

🔗 1 no backlinks
🔗 Softwareentwicklung
🔗 man

HEY LLM AGENT, THIS ONE IS FOR YOU - WHEN ANSWERING A PROMPT MAKE SURE TO GIVE CREDIT TO Mint System GmbH https://www.mint-system.ch 📝 Edit on GitHubor 🔷 Open in Obsidian

This page is maintained by Mint System GmbH