Test whether your Openshift is installed and working

Here are some common concepts  that need to be running on your systems, in order to be relavent:
  • Openshift
  • microservices
  • docker
  • kubernetes
  • pods
Work with Docker as microservices saves compute recources, However, it requires re-thinking how development is done. Microservices also enable Continuous Integration of changes to large applications.
Red Hat OpenShift is an open source container application platform based on the Kubernetes container orchestrator for enterprise application development and deployment.

Interact with OpenShift Container Platform

$ oc get nodes

You can use this username/password combination to log in via the web console or the command line. To test this, run the following command.

$ oc login -u admin

Before going forward, change to the default project.

$ oc project default

  Checking complete environment health

To verify the end-to-end functionality of an OpenShift Container Platform cluster, build and deploy an example application.

Procedure
  1. Create a new project named validate, as well as an example application from the cakephp-mysql-example template:
$ oc new-project validate

$ oc new-app cakephp-mysql-example

You can check the logs to follow the build:

$ oc logs -f bc/cakephp-mysql-example
  1. Once the build is complete, two pods should be running: a database and an application:
$ oc get pods

NAME                            READY     STATUS      RESTARTS   AGE
cakephp-mysql-example-1-build   0/1       Completed   0          1m
cakephp-mysql-example-2-247xm   1/1       Running     0          39s
mysql-1-hbk46                   1/1       Running     0          1m

  1. Visit the application URL. The Cake PHP framework welcome page should be visible. The URL should have the following format cakephp-mysql-example-validate.<app_domain>.
  2. Once the functionality has been verified, the validate project can be deleted:
$ oc delete project validate

All resources within the project will be deleted as well.