CSC Cloud — Using CSC Cloud

OpenShift CLI

  1. Log in to Rahti (at https://rahti.csc.fi:8443). Authorize command line session by clicking top right username → Copy Login Command:

    Authorize CLI

    And pasting the text to command line:

    $ oc login https://rahti.csc.fi:8443 --token=<token>
    
    Logged into "https://rahti.csc.fi:8443" as "rahtidemo" using the token provided.
    ...
    
  2. Create a project:

    oc new-project course-training-<number> --description="csc_project: xxxx"
    
  3. The project should be now visible on the web console and it should get listed with oc projects command.

    ```bash $ oc projects You have one project on this server: “course-rahti-".

    Using project “course-rahti-" on server "https://rahti.csc.fi:8443".

DeploymentConfig

Service

Route

Accessing the application

Now you deployed your Route, you can access the application through the address https://hello-rahti-xx.rahtiapp.fi and you should see “Hello Openshift!”

Cleanup

oc delete all -l app=hello-openshift

or

oc delete -f dc.yaml -f service.yaml -f route.yaml