Skip to content

Kubernetes & OpenShift: Clean up & disk

Kubernetes & OpenShift commands for clean up & disk (tags: #cleanup #disk #backup).

Index
1 items

Kubernetes: Delete evicted and failed pods

Destructive

Cleans up Evicted / Error pods left behind after node pressure.

kubectl delete pods -n <namespace> --field-selector=status.phase=Failed
What each part does
  1. kubectl delete podsdelete pods
  2. -n <namespace>in this namespace
  3. --field-selector=status.phase=Failedonly pods in phase Failed (evicted pods are in this phase)

Also known as: Evicted · delete evicted pods · The node was low on resource: ephemeral-storage

My DevOps Playbook by Angelo John Calleja

New runbook

GitHub not connected

Saving is handled by the site: the GitHub token is stored in Cloudflare, not in your browser. Enter the editor password (the EDITOR_PASSWORD secret) to unlock saving in this browser.

Saving commits to gelogrammer/My_DevOps_Playbook. Create a fine-grained token with access to only this repo andContents: Read and write, then paste it here. It is stored only in this browser.

src/content/docs/…