The OpenShift CLI is accessed using the command oc. From here, you can administrate the entire OpenShift cluster and deploy new applications.
The CLI exposes the underlying Kubernetes orchestration system with the enhancements made by OpenShift. Users familiar with Kubernetes will be able to adapt to OpenShift quickly. The CLI is ideal in situations where you are:
1) Working directly with project source code.
2) Scripting OpenShift operations.
3) Restricted by bandwidth resources and cannot use the web console.
For this section, our task is going to be creating our first project.
Step 2 – Exploring The Web Console
While the command line tool is awesome, for this course we are going to focus on the web console, which is equally awesome.
Step 3 – Deploying a Docker Image
In this lab you are going to deploy the front end web component of the ParksMap application, also called parksmap. The web application will display an interactive map, which will be used to display the location of major national parks from all over the world.
Step 4 – Scaling Your Application
Let’s scale our application up to 2 instances of the pods. You can do this by clicking the “up” arrow next to the Pod in the OpenShift web console on the overview page.
Step 5 – Routing HTTP Requests
Services provide internal abstraction and load balancing within an OpenShift environment, as sometimes clients (users, systems, devices, etc.) outside of OpenShift need to access an application. The way that external clients are able to access applications running in OpenShift is through the OpenShift routing layer. The data object behind that layer is a Route.
The default OpenShift router (HAProxy) uses the HTTP header of the incoming request to determine where to proxy the connection. You can optionally define security, such as TLS, for the Route. If you want your Services, and, by extension, your Pods, to be accessible to the outside world, you need to create a Route.
Step 6 – Building From Source Code
In this lab, you are going to deploy a backend service for the ParksMap application. This backend service will provide data, via a REST service API, on major national parks from all over the world. The ParksMap front end web application will query this data and display it on an interactive map in your web browser.