How to delete objects like events, configmaps, secrets, etc., for a particular namespace from etcd in RHOCP

Solution Verified - Updated -

Issue

  • Large number of counts for the objects like events, configmaps, secrets, pods, deployments, statefulsets etc., for a particular namespace filling up the etcd database size.

  • Unable to remove large number of objects like events, configmaps, secrets, pods, deployments, statefulsets etc., for a particular namespace when oc commands are not working.

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content