$ oc login https://api.cluster.chp5-test.npocloud.nl:6443 Authentication required for https://api.cluster.chp5-test.npocloud.nl:6443 (openshift) Username: UserName Password: Login successful. You don't have any projects. You can try to create a new project, by running oc new-project <projectname> Welcome! See 'oc help' to get started.
2 Setup client tools
Installing OpenShift Container Platform Command-line Interface (CLI)
-
Installing the oc Administer CLI (OpenShift Command-line Interface)
-
You can download the latest version here: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/
-
Installing odo Developer CLI (OpenShift Do Command-line Interface)
After installing the client tools, you can login to the OpenShift CLI usign the oc login command:
If you have 2FA Authentication enabled on your account, you will have to login to the webconsole first.
You can login through https://console.chp5-test.npocloud.nl. After logging in, select your (user)name on the top-right corner and then select "Copy Login Command"
Now select "Display Token". Here you can copy the login command and paste in your terminal.
Other Prerequesits
-
Git