ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

DX AIOps - many pods in Evicted status - how can I delete these unwanted pods?


Article ID: 206249


Updated On:


DX Operational Intelligence DX Application Performance Management CA App Experience Analytics CA Application Performance Management (APM / Wily / Introscope)


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


Additional Information

DX OI - Troubleshooting, Common Issues and Best Practices