1. Lab environment

Getting to know the lab environment.

Login

The necessary URLs and credentials to access the lab environment will be provided by your trainer. Use Chrome/Chromium for the best experience.

OpenShift’s web console

We are calling OpenShift’s web interface the web console. You access it by opening a browser, open the following URL and log in.

During the whole lab, make sure you’re working on the Virtualization view:

OpenShift’s Virtualization view

Web terminal

OpenShift’s web terminal is a convenient way to work with, e.g., oc as it doesn’t require you to install anything locally on your computer. It is fully integrated into OpenShift’s web console explained in the chapter above.

First of all, open a browser, then login on OpenShift’s web console using the URL and credentials provided by your trainer.

In OpenShift’s web console:

  1. Click on the terminal icon on the upper right
  2. Choose terminal-$USER project
  3. Click Start

Web terminal in the OpenShift console

Verification

After the initialization, you’re presented with a web terminal. Tools like oc are already installed and you’re also already logged in.

You can check this by executing the following command:

oc whoami

Namespace

We are going to use the following namespace for the lab tasks:

  • lab-<username>

And as already mentioned, use the following namespace for your web terminal :

  • terminal-<username>

General lab notes

Placeholders

In this lab we will use the following placeholders or naming conventions:

  • $USER: If you see this somewhere else than here (you shouldn’t if you followed the URL in the email), make sure the environment variable $USER is containing your username
  • $APPDOMAIN: If you see this somewhere else than here (you shouldn’t if you followed the URL in the email), make sure the environment variable $APPDOMAIN is containing the cluster’s application domain
  • [...]: Means that some lines in the listing or command have been omitted for readability

Hints

We usually provide help for a task you have to complete. For example, if you have to implement a method you most likely find the solution in a Task hint like this one:

Task hint

Your yaml should look like this:

kind: VirtualMachine
metadata:
  name: kubevirtvm
spec:
  runStrategy: Halted
  template:
    spec:
      domain:
        devices: {}
        memory:
          guest: 64Mi
        resources: {}
status: {}

Highlighting important things

We will use the following styling to highlight various things.