When running kubectl get pods, I see many pods in Evicted status:
How can I remove these unnecessary pods?
DX Operational Intelligence 2x
DX Application Performance Management 2x
DX Platform 2x
Run below command and wait until the operation completed:
For Openshift:
for evicted in $(oc get pods | grep "Evicted" | awk '{print $1}'); do oc delete pod ${evicted}; done
For Kubernetes:
for evicted in $(kubectl get pods -n<your-dxi-namespace>| grep "Evicted" | awk '{print $1}'); do kubectl delete pod ${evicted} -n<your-dxi-namespace>; done
DX OI - Troubleshooting, Common Issues and Best Practices
https://knowledge.broadcom.com/external/article/190815/dx-oi-troubleshooting-common-issues-and.html