OpenShift Tips

Clean up

Delete ‘Completed’ pods

During the installation process, a few temporary pods are created. Keeping those pods as ‘Completed’ doesn’t harm nor waste resources but if you want to delete them to have only ‘running’ pods in your environment you can use the following command:

oc delete pod --field-selector=status.phase==Succeeded --all-namespaces
Last updated on 16 Jun 2020
Published on 18 Jun 2019
Edit on GitHub