Many pods in Evicted status
search cancel

Many pods in Evicted status

book

Article ID: 206249

calendar_today

Updated On:

Products

DX Operational Intelligence DX Application Performance Management CA App Experience Analytics

Issue/Introduction

I see many pods in Evicted status. How can I remove these unnecessary pods?

 

Environment

DX OI, APM, AXA 2x on premise

Resolution

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

 

Additional Information