Prior to working on labs, the Platform Services team will have created 2 projects:
- ocp101-tools: This namespace/project will have all of the builds related objects
- ocp101-dev: This namespace/project will have all the deployment related objects
One member from your group has been given administrative rights to the projects and is responsible for adding all other members to each project.
NOTE: the actual name of the namespaces may vary, and ocp101
may be a sequence of random characters.
Assign yourself a unique name to be used during your application deployments. Do not copy the application names directly from the lab guides as you are in a shared environment with the rest of your team.
For example, if the lab says to create an application named app1-[username]
, I
would create an app named app1-stewartshea
.
These labs will require access to the lab ocp environment:
You may already have oc
installed on your machine. Your oc
version should match the version of the cluster.
If you have oc
installed run oc version
. It should look something like this
Client Version: openshift-clients-4.6.0-202006250705.p0-176-g5797eaeca
If you do not have oc
installed or your version is incorrect follow these instructions.
-
Option 1: If you have access to the Openshift cluster you can simply download directly from the console
-
Option 2: Alternativly, navigate to the Openshift CLI Mirror and download the version of
oc
that matches your operating system.
For Linux/Mac users that may be working with multiple versions of
oc
, it is helpful to have both versions ofoc
(3.xx/4.xx) on your machine. You can create analias
tooc 3.xx
instead of adding it to your path. This way you can utilize the different versions for different OpenShift environment.
- Unpack
oc
into a place that is easily reference-able from a command line interface or add it to yourPATH
-
Use a web browser to open the web console: - Silver Web Console
-
Click your username in the top right corner of the screen and choose 'copy login command'
-
Log in again as prompted, then click 'display token'.
-
Copy the 'oc login' command including the token and servo information. Paste this command into your command-line interface (CLI) and run it to log in.
In addition, developers require GIT locally installed and must have a 2FA device to support access to GitHub.
You will find many examples commands
and tricks that highly depend on your OS. These commands were developed on unix based systems. Window's Command Prompt will not work with these examples. You will need to either use WSL, Powershell, Gitbash, or similar.
Next page - Adding User Access