2. First steps
In this lab, we will interact with the OpenShift cluster for the first time.
Warning
Please make sure you completed Setup before you continue with this lab.
Projects
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
You would usually create your first Project here using oc new-project
.
This is, however, not possible on the provided cluster.
Instead, a Project named <username>-training-test
has been pre-created for you.
Use this Project for all labs in this training except for 9.5. ResourceQuotas and LimitRanges.
Note
Please inform your trainer if you don’t see such a Project.
Note
In order to declare what Project to use, you have several possibilities:
- Some prefer to explicitly select the Project for each
oc
command by adding--namespace <namespace>
or-n <namespace>
- By using the following command, you can switch into another Project instead of specifying it for each
oc
command
oc 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>
Note
With the command oc get
you can display all kinds of resources.