You can manage your project in the console or via the command line.

Install ose3client

To use the CLI, you must install ose3client.

The ose3client is installed in C:\dev\common\ose3client. This application is available in the Software center.

sofware catalogue

You can use oc command to show the help.

oc

The result in a DOS cmd prompt :

oc help

Authentification

First, you must log on Openshift with your LDAP scloud user.

oc login https://paas.gcloud.belgium.be

Exercise : 

I propose you to play with the command line. You can use the documentation (https://www.gcloud.belgium.be/doc/PAAS/CLI/).

  1. Show list of your projects in Openshift
  2. Go to the socsec-test-trainings
  3. Show dc list
  4. Show route list
  5. Show service list
  6. Show detail of the dc of hellostco
  7. Edit dc of hellostco
  8. Show list of user of project socsec-test-sda
  9. Add a user with the username [youruser]2
  10. Show list of user of project socsec-test-sda
  11. Delete user [youruser]2

Solution : 

  1. oc get projects
  2. oc project socsec-test-trainings
  3. oc get dc
  4. oc get route
  5. oc get service
  6. oc describe dc trainings-hellostco
  7. oc edit dc trainings-hellostco
  8. oc describe policyBindings :default
  9. oc policy add-role-to-user view smals-stco2
  10. oc describe policyBindings :default
  11. oc policy remove-user smals-stco2



Last modified: Thursday, 16 March 2017, 8:16 AM