Cannot remove a service account from privileged SCC on OpenShift 4
Issue
- When removing the
service account"system:serviceaccount:cluster-collectord:cluster-collectord", it generates the following error:
$ oc adm policy remove-scc-from-user privileged system:serviceaccount:cluster-collectord:cluster-collectord
error: unable to find target [cluster-collectord]
$ oc adm policy remove-scc-from-user privileged -z cluster-collectord:cluster-collectord
error: unable to find target [cluster-collectord:cluster-collectord]
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.5 and above
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.