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
Instructions
As the
developeruser, locate and then navigate to the Red Hat OpenShift web console.Use the terminal to log in to the OpenShift cluster as the
developeruser with thedeveloperpassword.[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-consolehttps://console-openshift-console.apps.ocp4.example.comOpen 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 Linkfrom the terminal.
Log in to the OpenShift web console as the
developeruser.Click and log in as the
developeruser with thedeveloperpassword.Note
Click to dismiss the option to view a short tour on the first visit.
Use the
Developerperspective of the web console to create your first project.From the
Getting Startedsection in the+Addpage, click to open theCreate Projectwizard.Create a project named
intro-navigateby using the wizard. Useintro-navigatefor the display name, and add a brief description of the project.Click to create the project.
Click to view the project.
Deploy a sample application in the project.
Select the link to browse the available sample applications.
Enter
Apacheinto the search bar to see the available sample applications for deployment.Select the samples option from from the list of available applications, and then click from the side panel.
Use
application-testfor the application name and the name of the deployment,https://git.ocp4.example.com/developer/httpd-ex.gitfor the git repository URL, andGitLabfor the git type. Leave the rest of the default values, and select at the bottom of the page to create the application.The
Topologypage opens and displays theapplication-testapplication deployment.
View the deployment details for the
application-testapplication.Select the
application-testdeployment to view the details of the application.Select the list to view the available controls for the
application-testdeployment.
Switch into the
Administratorperspective 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 and then click to change to the
Administratorperspective. The web console changes to the new perspective and exposes additional information through the sidebar.Select the project to open the Project Details page. This page includes a general overview of the project, such as the project status and resource usage details.
View the
application-testpods and deployment.From the OpenShift web console menu, navigate to → to view the
application-testpods.Navigate to → to view the list of deployments in the project.
Click to view the deployment details.
View the
application-testservice and route.Navigate to → and click to view the details of the
application-testservice.Navigate to → and click to view the details of the
application-testroute.
Delete the project and log out of the web console.
From the OpenShift web console menu, navigate to → . Select from the context menu for the
intro-navigateproject.Enter the project name in the text field and then select .
Log out of the web console. From the OpenShift web console right panel, click and then select from the account menu.
Log in to the OpenShift web console as the
adminuser 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 and then enter the
adminusername and theredhatocppassword.From the OpenShift web console menu, navigate to → . Each operator provides a specific function for the cluster. Select an individual operator to display its details.
Navigate to → 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 → to view the list of all deployments in the cluster. Select an individual deployment to display its details.
Navigate to → 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 and then select from the account menu.