Chapter 3. Accessing the OpenShift Cluster
At this point, you should have a basic understanding of the OpenShift platform and what it can be used for. To deploy your own applications to an OpenShift cluster, you can use either the OpenShift web console, or the oc
command-line client.
Before you can do anything, though, you first need to log in to the OpenShift cluster. As OpenShift is a multitenant environment you will use your own account.
If you have installed Minishift or run oc cluster up
on your own computer, an account is preconfigured for you. The username of that account will be developer
. Minishift and oc cluster up
will accept any value for a password. If you log in with a different username, it will automatically configure a new account.
If you are using a hosted OpenShift environment, such as OpenShift Online, the login credentials will be what you signed up to the service with, or you may need to log in with a third-party identity provider.
This chapter will describe how to log in to OpenShift through the web console and oc
command-line client. It will also explain how you can retrieve an access token for your active login session, which can be used to access the OpenShift cluster when using the REST API.
Using the Web Console
The easiest way to access and interact with OpenShift is through the web console. The URL for the web console will be dictated by what was specified as the public URL for the OpenShift cluster. Once the console is accessed, how you then log ...
Get Deploying to OpenShift now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.