On OpenShift, Eclipse Che can be installed using the OperatorHub Catalog present in the OpenShift web console. Following steps are described:
-
Installing Che using the Che Operator in OpenShift 4 web console.
-
Viewing the state of the Che cluster deployment in OpenShift 4 web console.
-
Viewing the state of the Che cluster deployment using OpenShift 4 CLI tools.
-
Logging in to Che on OpenShift for the first time using OAuth
-
Logging in to Che on OpenShift for the first time registering as a new user.
Creating the Che project in OpenShift 4 web console
This section describes how to create the Che project in OpenShift 4 web console.
Prerequisites
-
An administrator account on a running instance of OpenShift 4.
Procedure
-
Open the OpenShift web console.
-
In the left panel, navigate to Projects.
-
Click the Create Project button.
-
Enter the project details:
-
In the Name field, type
che. -
In the Display Name field, type
Eclipse Che.
-
-
Click the Create button.
Installing the Che Operator in OpenShift 4 web console
This section describes how to install the Che Operator in OpenShift 4 web console.
Prerequisites
-
An administrator account on a running instance of OpenShift 4.
-
Administrative rights on an existing project named
cheon this instance of OpenShift 4. See Creating the Che project in OpenShift 4 web console. -
The Eclipse Che 6.x Operator is not installed.
Procedure
-
Open the OpenShift web console.
-
In the left panel, navigate to the Operators → OperatorHub section.
-
In the Search by keyword field, type
Eclipse Che. -
Click on the Eclipse Che tile.
-
Click the Install button in the Eclipse Che pop-up window.
-
In the A specific namespace on the cluster field, in the cluster drop-down list, select che.
-
Click the Subscribe button.
-
In the left panel, navigate to the Operators → Installed Operators section.
-
Eclipse Che is displayed as an installed Operator having the InstallSucceeded status.
-
Click on the Eclipse Che name in the list of installed operators.
-
Navigate to the Overview tab.
-
In the Conditions sections at the bottom of the page, wait for this message:
install strategy completed with no errors. -
Navigate to the Events tab.
-
Wait for this message:
install strategy completed with no errors.
Installing Che using the Che Operator in OpenShift 4 web console
This section describes how to install Che using the Che Operator in OpenShift 4 web console.
Prerequisites
-
An administrator account on a running instance of OpenShift 4.
-
At least one OAuth user provisionned on this instance of OpenShift 4.
-
The Che Operator is installed on this instance of OpenShift 4. See Installing the Che Operator in OpenShift 4 web console
Procedure
-
Open the OpenShift web console.
-
Navigate to the Operators → Installed Operators section.
-
Click Eclipse Che in the list of installed operators.
-
Click the Create Instance link in Provided APIs section.
-
The Create Che Cluster page is displayed.
-
Leave the default values as they are.
-
Click the Create button in the bottom-left corner of the window.
-
The
eclipse-checluster is created.
Viewing the state of the Che cluster deployment in OpenShift 4 web console
This section describes how to view the state of the Che cluster deployment in OpenShift 4 web console.
Prerequisites
-
An administrator account on a running instance of OpenShift 4.
-
A Che cluster is deployed on this instance of OpenShift 4. See Installing Che using the Che Operator in OpenShift 4 web console.
Procedure
-
Open the OpenShift web console.
-
Navigate to the Operators → Installed Operators section.
-
Click Eclipse Che in the list of installed operators.
-
Navigate to the Eclipse Che Cluster tab.
-
Click on the eclipse-che cluster that is listed in the table.
-
Navigate to the Overview tab.
-
Watch the content of the Message field. The field contain error messages, if any. The expected content is
None. -
Navigate to the Resources tab.
-
The screen displays the state of the resources assigned to the Che cluster deployment.
Finding Che cluster URL in OpenShift 4 web console
This section descibes how to find the Che cluster URL in OpenShift 4 web console.
Prerequisites
-
A running Eclipse Che cluster.
Procedure
-
Open the OpenShift web console.
-
In the left panel, navigate to the Operators → Installed Operators section.
-
Click on the Eclipse Che Operator tile.
-
Click on eclipse-che in the table.
-
Navigate to the Overview tab.
-
Read the content of the ECLIPSE CHE URL field.
Viewing the state of the Che cluster deployment using OpenShift 4 CLI tools
This section describes how to view the state of the Che cluster deployment using OpenShift 4 CLI tools.
Prerequisites
-
An installation of an Eclipse Che cluster. See Installing Che using the Che Operator in OpenShift 4 web console.
Procedure
-
Run the following commands to select the
cheproject:$ oc project che
-
Run the following commands to get the name and status of the pods running in the selected project:
$ oc get pods
-
Check that the status of all pods is
Running.NAME READY STATUS RESTARTS AGE che-8495f4946b-jrzdc 0/1 Running 0 86s che-operator-578765d954-99szg 1/1 Running 0 42m keycloak-74fbfb9654-g9vp5 1/1 Running 0 4m32s postgres-5d579c6847-w6wx5 1/1 Running 0 5m14s
-
Run the following command:
$ oc logs --tail=10 -f
oc get pods -o name | grep operator -
This is an example output of the command:
time="2019-07-12T09:48:29Z" level=info msg="Exec successfully completed" time="2019-07-12T09:48:29Z" level=info msg="Updating eclipse-che CR with status: provisioned with OpenShift identity provider: true" time="2019-07-12T09:48:29Z" level=info msg="Custom resource eclipse-che updated" time="2019-07-12T09:48:29Z" level=info msg="Creating a new object: ConfigMap, name: che" time="2019-07-12T09:48:29Z" level=info msg="Creating a new object: ConfigMap, name: custom" time="2019-07-12T09:48:29Z" level=info msg="Creating a new object: Deployment, name: che" time="2019-07-12T09:48:30Z" level=info msg="Updating eclipse-che CR with status: Che API: Unavailable" time="2019-07-12T09:48:30Z" level=info msg="Custom resource eclipse-che updated" time="2019-07-12T09:48:30Z" level=info msg="Waiting for deployment che. Default timeout: 420 seconds"
Finding Che cluster URL using OpenShift 4 CLI tools
This section describes how to Che cluster URL using OpenShift 4 CLI tool.
Prerequisites
-
View the logs of the Che Operator. See Viewing the state of the Che cluster deployment using OpenShift 4 CLI tools.
Procedure
-
Wait for the logs to show the message
Eclipse Che is now available at:followed by Che URL:time="2019-07-12T09:50:13Z" level=info msg="Updating eclipse-che CR with Eclipse Che server URL: http://che-che.apps.cluster-fre-f0a2.fre-f0a2.openshiftworkshop.com" time="2019-07-12T09:50:13Z" level=info msg="Custom resource eclipse-che updated" time="2019-07-12T09:50:13Z" level=info msg="Eclipse Che is now available at: http://che-che.apps.cluster-fre-f0a2.fre-f0a2.openshiftworkshop.com" time="2019-07-12T09:50:13Z" level=info msg="Updating eclipse-che CR with version: 7.0.0-RC-2.0"
Enabling SSL on OpenShift 4
Prerequisites
-
A running Eclipse Che cluster.
Procedure
-
Open the OpenShift web console.
-
In the left panel, navigate to the Operators → Installed Operators section.
-
Click on the Eclipse Che Operator tile.
-
Click on eclipse-che in the table.
-
Navigate to the Overview tab.
-
Toggle the TLS MODE switch to True.
-
Click Confirm change.
-
Navigate to the Resources tab.
-
Wait that the pods are restarted.
-
Navigate to the Overview tab.
-
Click the ECLIPSE CHE URL link.
-
Notice that the link is redirected to HTTPS.
-
The browser displays the Eclipse Che Dashboard using a valid Let’s Encrypt certificate.
Logging in to Che on OpenShift for the first time using OAuth
This section describes how to log in to Che on OpenShift for the first time using OAuth.
Prerequisites
-
A running Eclipse Che cluster.
-
Know the Eclipse Che URL.
Procedure
-
Navigate to the Eclipse Che URL to display the Eclipse Che login page.
-
Choose the OpenShift OAuth option.
-
The Authorize Access page is displayed.
-
Click on the Allow selected permissions button.
-
Update the account information: fill in the
Username,Email,First nameandLast namefield and click on the Submit button. -
The browser displays the Eclipse Che Dashboard.
Logging in to Che on OpenShift for the first time registering as a new user
This section describes how to log in to Che on OpenShift for the first time registering as a new user.
Prerequisites
-
A running Eclipse Che cluster.
-
Know the Eclipse Che URL.
Procedure
-
Navigate to the Eclipse Che URL to display the Eclipse Che login page.
-
Choose the Register as a new user option.
-
Update the account information: fill in the
Username,Email,First nameandLast namefield and click on the Submit button. -
The browser displays the Eclipse Che Dashboard.


