Install OpenShift Dev Spaces

  1. Log into the OpenShift console from your browser.

  2. Navigate to the Operator Hub

  3. Type dev spaces into the search, and select Red Hat OpenShift Dev Spaces:

  4. Click Install:

  5. Click Install:

    The Operator should begin installing:

  6. Observe the installed Operators, by clicking on Installed Operators underneath Operator Hub in the left nav menu bar:

Create the OpenShift Dev Spaces CheCluster Instance

  1. Open a terminal and login to your OpenShift cluster with the CLI.

  2. Create an instance of Dev Spaces in your cluster:

    cat << EOF | oc apply -f -
    apiVersion: v1
    kind: Namespace
    metadata:
      name: openshift-devspaces
    ---
    apiVersion: org.eclipse.che/v2
    kind: CheCluster
    metadata:
      name: devspaces
      namespace: openshift-devspaces
    spec:
      components:
        cheServer:
          debug: false
          logLevel: INFO
        metrics:
          enable: true
        pluginRegistry:
          openVSXURL: https://open-vsx.org
      containerRegistry: {}
      devEnvironments:
        startTimeoutSeconds: 300
        secondsOfRunBeforeIdling: -1
        maxNumberOfWorkspacesPerUser: -1
        maxNumberOfRunningWorkspacesPerUser: 5
        containerBuildConfiguration:
          openShiftSecurityContextConstraint: container-build
        disableContainerBuildCapabilities: false
        defaultEditor: che-incubator/che-code/latest
        defaultNamespace:
          autoProvision: true
          template: <username>-devspaces
        secondsOfInactivityBeforeIdling: 1800
        storage:
          pvcStrategy: per-workspace
      gitServices: {}
      networking: {}
    EOF
    
  3. Wait for the Dev Spaces cluster to complete its rollout:

    In the console, select from the left hand nav menu Workloads -> Pods, Then select the Project: openshift-devspaces from the drop down in the top left.

    When the rollout is complete, the list of running pods should look somethings like:

You can now proceed with creating a Dev Spaces Workspace.