Fine-tune the server

Fine-tune the OpenShift Dev Spaces server by setting environment variables or overriding properties that are not exposed through the standard CheCluster Custom Resource fields.

Advanced configuration is necessary to:

  • Add environment variables not automatically generated by the Operator from the standard CheCluster Custom Resource fields.
  • Override the properties automatically generated by the Operator from the standard CheCluster Custom Resource fields.

The extraProperties field, part of the CheCluster Custom Resource cheServer settings, contains a map of additional environment variables to apply to the OpenShift Dev Spaces server component. For a complete list of available fields and instructions on applying changes with the CLI, see Additional resources.

Override the default memory limit for workspaces

  • Configure the CheCluster Custom Resource.
    apiVersion: org.eclipse.che/v2
    kind: CheCluster
    spec:
      components:
        cheServer:
          extraProperties:
            CHE_LOGS_APPENDERS_IMPL: json
    Note:

    Previous versions of the OpenShift Dev Spaces Operator had a ConfigMap named custom to fulfill this role. If the OpenShift Dev Spaces Operator finds a configMap with the name custom, it adds the data into the customCheProperties field. The Operator then redeploys OpenShift Dev Spaces and deletes the customconfigMap.