Subscribe to our blog

The release of Red Hat OpenShift 4.7 added a new vSphere Installer Provisioned Installation (IPI) option that makes it very easy to quickly provision an OpenShift cluster in a VMWare EXSi environment. This cluster could be used for some quick testing or development.

In this three part tutorial we will learn the OCP IPI process for VMWare, how to create user ids and set permissions, and install a simple application. Part 1 can be found here, and Part 2 is here.

In part three of the tutorial we will use the OCP console to deploy and test a simple application. OCP makes it easy to deploy and manage your applications and their runtime requirements from the OCP console or OCP command line.

Deploying Our First Application

Installing a simple test application

  • We have been doing a lot of work from the command line, so let's switch to the OpenShift Administration Console to set up our new application.

  • Paste the OpenShift Administration Console url into a web browser. The admin console url for my cluster looks like this - https://console-openshift-console.apps.ocp4.example.com.

  • At the admin console, click the cluster-users button and on the next screen provide your username and password, and then click the blue Log in button. For this part of the tutorial we are going to login as the developer.

OpenShift console login

  • On the admin console in the upper right corner you will see that you are logged in as the developer. In the Administrator perspective on the Home screen you will see two projects including the my-first-app project we just created. You have two perspectives in the admin console, Administrator and Developer, that change the perspective to provide you with the tabs appropriate to the type of work or activities you would do in each role. Click on the drop down near the upper left of your screen and choose Developer to change to the developer's perspective. As the Developer, you do not have full admin rights to the OpenShift cluster as we didn't grant those to you earlier in the tutorial.

Projects view OpenShift Console

  • In the Developer perspective make sure you are on the Topology tab and then click project drop down and choose the my-first-app project.

Topology tab choosing my first project

  • Currently in the Topology view there are no application deployments. We can choose the +Add tab or click the Add age link to create a deployment from the sample applications. Click the Add page link.

Add Page Link

  • On the add page click the View all sample link on the Create applications using samples tile.

View All Sample Link

  • On the Samples page, start typing 'Ngin' in the search field and click on the Nginx tile.

Create Sample Application Nginx

  • For our sample Nginx application let's give it the name 'my-first-nginx' in the Name text field and choose the 1.20-ubi8 image version from the Builder Image version drop down list. For our sample I chose the Nginx running in the Universal Base Image (UBI) 8. Feel free to choose any UBI version. Finally click the blue Create button to start our deployment.

OCP14-1

  • When the build deployment starts, the first step is creating the build of the application. The admin console will take you to the Topology view and you will see the deployment tile for our application. Click on the tile to bring up the details of our deployment and you will see the Build is in process.

OCP15-1

  • When you see that the build is complete, scroll down and you will see that Services and a Route has been created for our deployment. Click the Route link for my-first-nginx deployment to see the application.

OCP16-1

  • Congratulations! You've successfully installed a Red Hat OpenShift cluster, created users, created your first project and deployed your first application.

OCP17-1

  • Back at the Topology view, you can right click the three dots on the deployment button of the my-first-nginx deployment to bring up a context senstive menu. From here you can easily view and/or edit additional deployment options.

OCP18-1

  • Change your perspective back to the Administrator perspective and look through the other configuration settings we created earlier via the command line. You can also perform the activies we did previously on the command line through Adminstrator perspective in the admin console.

OCP19

Summary

In part three of this three part tutorial we have seen how easy it is to use the intuitive OpenShift Administrator Console to create, configure, manage and monitor cloud native applications in our OpenShift cluster. OCP is 100% Kuberenetes complaint and we either the kubectl CLI or the OC CLI to manage our cluster.

OpenShift provides you with an end-to-end enterprise ready kubernetes environment with all the tools. Openshift supports you from development and testing kubernetes based applications on the desktop and to deploying these applications to a production OpenShift cluster. Red Hat provides you with all the tools you need to automate your development and deployments. If you have a favorite tool or product you would like to use with OpenShift for development, CI/CD pipelines, security, etc., you can add those tools to your 100% kubernetes compliant OpenShift cluster.

Appendix


About the author

Paul Lucas is a Chicagoland-based Red Hat Solutions Architect working with a variety of enterprise businesses. A 21 year technical sales veteran, Paul was previously a customer working at a benefits consulting firm, where he advised development teams on the use of Java and the then-emerging Java EE.

Read full bio

Browse by channel

automation icon

Automation

The latest on IT automation that spans tech, teams, and environments

AI icon

Artificial intelligence

Explore the platforms and partners building a faster path for AI

open hybrid cloud icon

Open hybrid cloud

Explore how we build a more flexible future with hybrid cloud

security icon

Security

Explore how we reduce risks across environments and technologies

edge icon

Edge computing

Updates on the solutions that simplify infrastructure at the edge

Infrastructure icon

Infrastructure

Stay up to date on the world’s leading enterprise Linux platform

application development icon

Applications

The latest on our solutions to the toughest application challenges

Original series icon

Original shows

Entertaining stories from the makers and leaders in enterprise tech