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

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 2x
DX Application Performance Management 2x

DX Platform 2x

Resolution

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

 

Additional Information

DX OI - Troubleshooting, Common Issues and Best Practices

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