[DevOps] OpenShift – How to login as system admin?

Command Line: $ oc login -u system:admin -n default

Verified into: v3.2.1.28

The following is an example.

$ oc login -u system:admin -n default

You have access to the following projects and can switch between them with ‘oc project <projectname>’:

* default (current)

* logging

* management-infra

* openshift

* openshift-infra

More Information: https://docs.openshift.com/container-platform/3.4/cli_reference/manage_cli_profiles.html

**Note** The default project just can be seen with system: admin privileges

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s