2.2. Console login
Task 2.2.1: Login on the web console
First of all, open your browser. Then, log in on OpenShift’s web console using the URL and credentials provided by your trainer.
Task 2.2.2: Login on the command line
In order to log in on the command line, copy the login command from the web console.
To do that, open the Web Console and click on your username that you see at the top right, then choose Copy Login Command.
A new tab or window will open in your browser.
Note
You might need to log in again.The page now displays a link Display token. Click on it and copy the command under Log in with this token.
Now paste the copied command on the command line.
Task 2.2.3: Verify login
If you now execute oc version
you should see something like this (your output may vary):
Client Version: 4.11.2
Kustomize Version: v4.5.4
Kubernetes Version: v1.24.0+dc5a2fd
First steps with oc
The oc
binary has many subcommands. Invoke oc --help
(or simply -h
) to get a list of all subcommands; oc <subcommand> --help
gives you detailed help about a subcommand.
Next steps
If you’re interested, have a look at the 3. Other ways to work with OpenShift, which is however totally optional.
When you’re ready to go, head on over to the labs and begin with the training!