When running kubectl get pods, I see many pods in Evicted status:
How can I remove these unnecessary pods?
DX Operational Intelligence 1.3.2, 20.x
DX Application Performance Management 20.x
a) Run below command and wait until the operation completed:
for evicted in $(oc get pods | grep "Evicted" | awk '{print $1}'); do oc delete pod ${evicted}; done
b) verify all the evicted pods have been removed and that only running pod are being displayed:
kubectl get pods
here is an example from Openshift console > Applications > pods
DX OI - Troubleshooting, Common Issues and Best Practices
https://knowledge.broadcom.com/external/article/190815/dx-oi-troubleshooting-common-issues-and.html