2. First steps

In this lab, we will interact with the OpenShift cluster for the first time.

Projects

As a first step on the cluster, we are going to create a new Project.

A Project is a logical design used in OpenShift to organize and separate your applications, Deployments, Pods, Ingresses, Services, etc. on a top-level basis. Authorized users inside a Project are able to manage those resources. Project names have to be unique in your cluster.

Task 2.2: Create a Project

Create a new Project in the lab environment. The oc help output can help you figure out the right command.

Solution

To create a new Project on your cluster use the following command:

oc new-project <namespace>

Task 2.3: Discover the OpenShift web console

Discover the different menu entries in the two views, the Developer and the Administrator view.

Display all existing Pods in the previously created Project with oc (there shouldn’t yet be any):

oc get pod --namespace <namespace>