How can I pass login credentials for my OpenShift cluster through the command line in order to automate logging in?
Issue
I would like to write some bash scripts in order to automate tasks. Is there a way to login from the CLI by providing credentials in the oc login command?
Environment
Red Hat OpenShift Container Platform
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
