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

book

Article ID: 206249

calendar_today

Updated On:

Products

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

Issue/Introduction

When running kubectl get pods, I see many pods in Evicted status:

How can I remove these unnecessary pods?

Environment

DX Operational Intelligence 1.3.2, 20.x
DX Application Performance Management 20.x

Resolution

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

https://knowledge.broadcom.com/external/article/190815/dx-oi-troubleshooting-common-issues-and.html

Attachments