OpenShift supports applications deployment using an image that is stored in an external image registry. Images have the necessary packages and program tools to run the applications by default.
To deploy an application that is already part of an image:
- Log in to the OpenShift cluster:
oc login -u <user name>
- Create a new project by running:
oc new-project <project name>
- Create a new application by running:
oc new-app <image-name>
This guide uses openshift/hello-openshift for the image name.
- After the image is deployed, you can identify all the objects that are created as part of the deployment by running the oc get all command. The following figure shows the command output:
Figure 11. Sample application deployment status