How can I use a ServiceAccount with the oc client tool?
Issue
- After creating a ServiceAccount and providing it with role-based access control (RBAC) permissions, how can the ServiceAccount credentials be used with the
occommand line tool to automate functions within the cluster? - We require a permanent token that can be used with the
occlient to access resources in the cluster.
Environment
- OpenShift Container Platform
- 4.X
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.