Using a Helm chart

A Helm Chart is a Kubernetes extension for defining, installing, and upgrading Kubernetes applications.

When deploying Che using the Helm chart, configure the workspace exposure strategy using the global.serverStrategy property. To do so, add the following option to the helm install or helm upgrade command:

$ helm install --set global.serverStrategy=<single-host>

or:

$ helm upgrade --set global.serverStrategy=<single-host>

Depending on the strategy used, replace the <single-host> option in the above example with multi-host or default-host.

Using an Operator

Operators are software extensions to Kubernetes that use custom resources to manage applications and their components.

When deploying Che using the Operator, configure the intended strategy by modifying the spec.k8s.ingressStrategy property of the CheCluster custom resource object YAML file. To activate changes done to CheCluster YAML file, do one of the following:

  • Create a new cluster by executing the kubectl apply command. For example:

    $ kubectl apply -f <my-cluster.yaml>
  • Update the YAML file properties of an already running cluster by executing the kubectl patch command. For example:

    $ kubectl patch checluster eclipse-che --type=json -p '[{"op": "replace", "path": "/spec/k8s/ingressStrategy", "value": "single-host"}]'

Depending on the strategy used, replace the single-host option in the above example with multi-host or default-host.