Pods are stuck with a 'Terminating' or 'Unknown' status and cannot be deleted using 'oc delete pods' even with '--grace-period=0' and '--force' options
Issue
- There are pods that can not be deleted.
- One or more pods are stuck in 'Terminating' state.
- One or more pods are stuck in 'Unknown' state.
- Deleting pods with the parameters '--grace-period=0' and '--force options' does not remove pods with 'Terminating' or 'Unknown' status. For example, 'oc delete pods somepod-123 --grace-period=0 --force'.
Environment
- OpenShift Container Platform
- OCP 3.7
- OCP 3.9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
