mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
61 lines
2.2 KiB
Plaintext
61 lines
2.2 KiB
Plaintext
|
|
// Module included in the following assemblies:
|
|
//
|
|
// * assemblies/quickstart-osd.adoc
|
|
|
|
[id="deploy-app_{context}"]
|
|
= Deploying an app with the OpenShift service catalog
|
|
|
|
|
|
From the OpenShift web console, you can deploy one of the built-in service catalog apps and expose the app with a route.
|
|
|
|
.Prerequisites
|
|
|
|
- An actively running cluster.
|
|
|
|
.Procedure
|
|
|
|
. From OpenShift Cluster Manager (OCM), click *Open console*.
|
|
|
|
. From the side navigation menu in the *Administrator* perspective, click *Home* -> *Projects* and then click *Create Project*.
|
|
|
|
. Enter a name for your project. Optional: Add a *Display Name* and *Description*. Click *Create*.
|
|
|
|
. Switch to the Developer perspective from the side navigation menu to create an app.
|
|
|
|
. Click *+Add* from the side navigation menu. From the *Add pane* menu bar, make sure that the *Project* is the one that you just created.
|
|
|
|
. Click *From Catalog*. The Developer Catalog opens in the pane.
|
|
|
|
. From the navigation menu in the pane, click *Languages* -> *JavaScript*.
|
|
|
|
. Click *Node.js*, and then click *Create Application*. After you select *Node.js*, the *Create Source-to-Image Application* pane opens.
|
|
+
|
|
[NOTE]
|
|
====
|
|
You might need to click *Clear All Filters* to display the *Node.js* option.
|
|
====
|
|
|
|
. In the *Git* section, click *Try Sample*.
|
|
|
|
. Scroll to confirm that *Deployment* and *Create a route to the application* are selected.
|
|
|
|
. Click *Create*. It will take a few minutes for the pods to deploy.
|
|
|
|
. Optional: You can check the status of the pods from the *Topology* pane. Click your *nodejs* app and review its sidebar. You must see that the `nodejs` build is complete, and that the `nodejs` pod is in a *Running* state to continue.
|
|
|
|
. When the deployment is complete, click the route location URL, which has a format similar to the following:
|
|
+
|
|
----
|
|
http://nodejs-<project>.<cluster_name>-<hash>.<region>.containers.appdomain.cloud
|
|
----
|
|
+
|
|
|
|
A new tab in your browser opens with a message similar to the following.
|
|
+
|
|
----
|
|
Welcome to your Node.js application on OpenShift
|
|
----
|
|
|
|
. Optional: To clean up the resources that you created, select *Administrator* from the perspective switcher, navigate to *Home* -> *Projects*, click your project's action menu, and click *Delete Project*.
|