In the context of OpenShift, Components and Services are basic structures that need to be stored in Application, which is a part of the OpenShift project that organizes deployables into virtual folders for better readability.
This chapter describes how to create OpenShift Components in the Che using the OpenShift Connector plug-in and push them to an OpenShift cluster.
-
A running instance of Che. To install an instance of Che, see Che quick-starts.
-
The user is logged in to an OpenShift cluster using the OpenShift Connector plug-in.
-
In the OpenShift Connector panel, right-click the row with the red OpenShift icon and select New Project.
-
Enter a name for your project.
-
Right-click the created project and select New Component.
-
When prompted, enter the name for a new OpenShift Application in which the component can be stored.
The following options of source for your component are displayed:
-
Git Repository
This prompts you to fill in a Git repository URL and select the intended revision of the runtime.
-
Binary File
This prompts you to select a file from the file explorer.
-
Workspace Directory
This prompts you to select a folder from the file explorer.
-
-
Enter the name for the component.
-
Select the component type.
-
Select the component type version.
-
The component is created. Right-click the component, select New URL, and enter a name of your choice.
-
The component is ready to be pushed to the OpenShift cluster. To do so, right-click the component and select Push.
The component is now deployed to the cluster. Right-click for selecting additional actions, such as debugging and opening in a browser (requires port
8080to be exposed).