Updates for exercise1.
This commit is contained in:
@ -18,17 +18,16 @@ In addition to the web console, OpenShift includes command line tools to provide
|
||||
|
||||
## 1.1 - Login to lab environment
|
||||
|
||||
An OpenShift `4.14` cluster has already been provisioned for you to complete these excercises. Open your web browser and navigate to the workshop login page https://demo.redhat.com/workshop/enwmgc.
|
||||
An OpenShift `4.16` cluster has already been provisioned for you to complete these excercises. Open your web browser and navigate to the workshop login page https://demo.redhat.com/workshop/c5exyr.
|
||||
|
||||
Once the page loads you can login with the details provided by your workshop facilitator.
|
||||
|
||||
<Zoom>
|
||||
| |
|
||||
| |
|
||||
|:-----------------------------------------------------------------------------:|
|
||||
| *Workshop login page* |
|
||||
</Zoom>
|
||||
|
||||
|
||||
## 1.2 - Login to the cluster web console
|
||||
|
||||
Once you're logged into the lab environnment we can open up the OpenShift web console and login with the credentials provided.
|
||||
@ -36,17 +35,16 @@ Once you're logged into the lab environnment we can open up the OpenShift web co
|
||||
When first logging in you will be prompted to take a tour of the **Developer** console view, let's do that now.
|
||||
|
||||
<Zoom>
|
||||
|  |
|
||||
|  |
|
||||
|:-----------------------------------------------------------------------------:|
|
||||
| *Developer perspective web console tour* |
|
||||
</Zoom>
|
||||
|
||||
|
||||
## 1.3 - Understanding projects
|
||||
|
||||
Projects are a logical boundary to help you organize your applications. An OpenShift project allows a community of users (or a single user) to organize and manage their work in isolation from other projects.
|
||||
[Projects](https://docs.openshift.com/container-platform/4.16/applications/projects/working-with-projects.html) are a logical boundary to help you organize your applications. An OpenShift project allows a community of users (or a single user) to organize and manage their work in isolation from other projects.
|
||||
|
||||
Each project has its own resources, role based access control (who can or cannot perform actions), and constraints (quotas and limits on resources, etc).
|
||||
Each project has its own resources, role based access control (who can or cannot perform actions), and constraints (quotas and limits on resources, etc).
|
||||
|
||||
Projects act as a "wrapper" around all the application services you (or your teams) are using for your work.
|
||||
|
||||
@ -55,12 +53,11 @@ In this lab environment, you already have access to single project: `userX` (Whe
|
||||
Let's click into our `Project` from the left hand panel of the **Developer** web console perspective. We should be able to see that our project has no `Deployments` and there are no compute cpu or memory resources currently being consumed.
|
||||
|
||||
<Zoom>
|
||||
| |
|
||||
| |
|
||||
|:-----------------------------------------------------------------------------:|
|
||||
| *Developer perspective project view* |
|
||||
</Zoom>
|
||||
|
||||
|
||||
## 1.4 - Switching between perspectives
|
||||
|
||||
Different roles have different needs when it comes to viewing details within the OpenShift web console. At the top of the left navigation menu, you can toggle between the Administrator perspective and the Developer perspective.
|
||||
@ -74,35 +71,31 @@ Switch back to the **Developer** perspective. Once the Developer perspective loa
|
||||
Right now, there are no applications or components to view in your `userX` project, but once you begin working on the lab, you’ll be able to visualize and interact with the components in your application here.
|
||||
|
||||
<Zoom>
|
||||
| |
|
||||
| |
|
||||
|:-----------------------------------------------------------------------------:|
|
||||
| *Switching web console perspectives* |
|
||||
</Zoom>
|
||||
|
||||
|
||||
|
||||
## 1.5 - Launching a web terminal
|
||||
|
||||
While web interfaces are comfortable and easy to use, sometimes we want to quickly run commands to get things done. That is where the `oc` command line utility comes in.
|
||||
While web interfaces are comfortable and easy to use, sometimes we want to quickly run more advanced commands to get things done. That is where the `oc` command line utility comes in.
|
||||
|
||||
One handy feature of the OpenShift web console is we can launch a web terminal that will create a browser based terminal that already has the `oc` command logged in and ready to use.
|
||||
|
||||
Let's launch a web terminal now by clicking the terminal button in the top right hand corner and then clicking **Start** with our `userX` project selected.
|
||||
|
||||
<Zoom>
|
||||
| |
|
||||
| |
|
||||
|:-----------------------------------------------------------------------------:|
|
||||
| *Launching your web terminal* |
|
||||
</Zoom>
|
||||
|
||||
|
||||
## 1.6 - Running oc commands
|
||||
|
||||
The [`oc` command line utility](https://docs.openshift.com/container-platform/4.14/cli_reference/openshift_cli/getting-started-cli.html#creating-a-new-app) is a superset of the upstream kubernetes `kubectl` command line utility. This means it can do everything that `kubectl` can do, plus some additional OpenShift specific commands.
|
||||
The [`oc` command line utility](https://docs.openshift.com/container-platform/4.16/cli_reference/openshift_cli/getting-started-cli.html) is a superset of the upstream kubernetes `kubectl` command line utility. This means it can do everything that `kubectl` can do, plus some additional OpenShift specific commands.
|
||||
|
||||
Let's try a few commands now:
|
||||
|
||||
|
||||
### Checking our current project
|
||||
|
||||
Most actions we take in OpenShift will be in relation to a particular project. We can check which project we are currently actively using by running the `oc project` command.
|
||||
@ -116,7 +109,7 @@ Using project "user1" from context named "user1-context" on server "https://172.
|
||||
|
||||
### Getting help and explaining concepts
|
||||
|
||||
As with any command line utility, there can be complexity that quickly surfaces. Thankfully the `oc` command line utility has excellent built in help.
|
||||
As with any command line utility, there can be complexity that quickly surfaces. Thankfully the `oc` command line utility has excellent built in help.
|
||||
|
||||
Let's take a look at that now.
|
||||
|
||||
@ -150,7 +143,6 @@ Build and Deploy Commands:
|
||||
|
||||
```
|
||||
|
||||
|
||||
To get a more detailed explanataion about a specific concept we can use the `oc explain` command.
|
||||
|
||||
Let's run `oc explain project` now to learn more about the concept of a project we introduced earlier:
|
||||
@ -179,11 +171,10 @@ DESCRIPTION:
|
||||
administrators, while end users should use the requestproject resource.
|
||||
```
|
||||
|
||||
|
||||
That's a quick introduction to the `oc` command line utility. Let's close our web terminal now so we can move on to the next excercise.
|
||||
|
||||
<Zoom>
|
||||
| |
|
||||
| |
|
||||
|:-----------------------------------------------------------------------------:|
|
||||
| *Closing your web terminal* |
|
||||
</Zoom>
|
||||
|
||||
Reference in New Issue
Block a user