I see many pods in Evicted status. How can I remove these unnecessary pods?
DX OI, APM, AXA 2x on premise
Run below command:
In Openshift:
for evicted in $(oc get pods | grep "Evicted" | awk '{print $1}'); do oc delete pod ${evicted}; done
In 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
Here is an example of the output of the command. Wait for the operation to complete