Setup CLI Access for the cluster
Last updated
Was this helpful?
Last updated
Was this helpful?
This section documents how to set up CLI access to a cluster. If you do not already have access to a cluster, refer back to the section.
The oc
CLI will be the main mechanism to interact with your OpenShift cluster. We'll be downloading and installing the CLI, and adding it to your environment path.
NOTE: Check for newer releases on the page.
Download the oc
tarball.
Unpack the tarball
Rename it for ease of use
Update PATH
.
NOTE: If you restart your cloud shell, you may need to re-run this command.
Verify the utility is available by using which
and the help command.
Click on OpenShift web console
on the top right to launch the web console.
Once in the OpenShift web console, click on the email/ID in the upper right. Choose the Copy Login Command option.
oc
CLIIn a new termimal, paste the login command you copied from the web console.
You should see a success message similar to the one below:
oc
commandsView nodes in the cluster.
View services, deployments, and pods.
View projects
To launch the OpenShift web console, navigate to the , find your cluster, and click on it.