Guided Exercise: Navigate the OpenShift Web Console
Access an OpenShift cluster by using its web console and identify pages about key OpenShift cluster services.
Outcomes
Explore the features and components of Red Hat OpenShift by using the web console.
Create a sample application by using the Developer perspective in the web console.
Switch to the Administrator perspective and examine the resources that are created for the sample application.
Use the web console to describe the cluster nodes, networking, storage, and authentication.
View the default cluster operators, pods, deployments, and services.
As the student
user on the workstation
machine, use the lab
command to prepare your system for this exercise.
This command ensures that the cluster is validated for the exercise.
[student@workstation ~]$ lab start intro-navigate
Procedure 1.1. Instructions
As the
developer
user, locate and then navigate to the Red Hat OpenShift web console.Use the terminal to log in to the OpenShift cluster as the
developer
user with thedeveloper
password.[student@workstation ~]$ oc login -u developer -p developer \ https://api.ocp4.example.com:6443 ...output omitted...
Identify the URL for the OpenShift web console.
[student@workstation ~]$ oc whoami --show-console https://console-openshift-console.apps.ocp4.example.com
Open a web browser and navigate to https://console-openshift-console.apps.ocp4.example.com. Either type the URL in a web browser, or right-click and select
Open Link
from the terminal.
Log in to the OpenShift web console as the
developer
user.Click Red Hat Identity Management and log in as the
developer
user with thedeveloper
password.NOTE
Click Skip Tour to dismiss the option to view a short tour on the first visit.
Use the
Developer
perspective of the web console to create your first project.From the
Getting Started
page, click Create a new project to open theCreate Project
wizard.Create a project named
intro-navigate
by using the wizard. Useintro-navigate
for the display name, and add a brief description of the project.Click Create to create the project.
Click Topology to view the project.
Deploy a sample application in the project.
Select the Start building your application link to browse the available sample applications.
Enter
Apache
into the search bar to see the available sample applications for deployment.Select the samples option from Httpd from the list of available applications, and then click Create from the side panel.
Examine the default values for the sample application, and then select Create at the bottom of the page.
The
Topology
page opens and displays thehttpd-sample
application deployment.
View the deployment details for the
httpd-sample
application.Select the icon on the
Topology
panel to view details of thehttpd-sample
deployment.Select the Actions list to view the available controls for the
httpd-sample
deployment.
Switch into the
Administrator
perspective and inspect the deployment.From the OpenShift web console, locate the left panel. If you do not see the left panel, then click the main menu icon at the upper left of the web console. Click Developer and then click Administrator to change to the
Administrator
perspective. The web console changes to the new perspective and exposes additional information through the sidebar.Navigate to Home → Projects to view the
intro-navigate
project in the populated project list.Select the intro-navigate project to open the Project Details page. This page includes a general overview of the project, such as the project status and resource utilization details.
View the
httpd-sample
pods and deployment.From the OpenShift web console menu, navigate to Workloads → Pods to view the
httpd-sample
pods.Navigate to Workloads → Deployments to view the list of deployments in the project. Click httpd-sample to view the deployment details.
View the
httpd-sample
service and route.Navigate to Networking → Services and click httpd-sample to view the details of the
httpd-sample
service.Navigate to Networking → Route and click httpd-sample to view the details of the
httpd-sample
route.
Delete the project and log out of the web console.
From the OpenShift web console menu, navigate to Home → Projects. Select Delete Project from the context menu for the
intro-navigate
project.Enter the project name in the text field and then select Delete.
Log out of the web console. From the OpenShift web console right panel, click developer and then select Log out from the account menu.
Log in to the OpenShift web console as the
admin
user to inspect additional cluster details.NOTE
When you use a cluster administrator account, you can browse the cluster components, but do not alter or remove any components.
Log in to the web console. Select Red Hat Identity Management and then enter the
admin
username and theredhatocp
password.From the OpenShift web console menu, navigate to Operators → Installed Operators. Each operator provides a specific function for the cluster. Select an individual operator to display its details.
Navigate to Workloads → Pods to view the list of all pods in the cluster. The search bar at the top can narrow down the list of pods. Select an individual pod to display its details.
Navigate to Workloads → Deployments to view the list of all deployments in the cluster. Select an individual deployment to display its details.
Navigate to Networking → Services to view the list of all services in the cluster. Select an individual service to display its details.
Log out of the web console.
Log out of the web console. From the OpenShift web console right panel, click Administrator and then select Log out from the account menu.
Finish
On the workstation
machine, use the lab
command to complete this exercise. This step is important to ensure that resources from previous exercises do not impact upcoming exercises.
[student@workstation ~]$ lab finish intro-navigate