Using a Service Account to prune images and other resources in OpenShift
Issue
- A user is needed with permissions to prune images, builds, and deployments across a cluster
- A non-expiring token is needed for pruning operations
-
The prune operation is failing with the following error - as reported in Error when trying to prune images in OpenShift: "You must use a client config with a token":
$ oc adm prune images --confirm=true error: You must use a client config with a token
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 3
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.