Using chectl to configure the CheCluster Custom Resource during installation
To deploy Che with a suitable configuration, edit the CheCluster Custom Resource YAML file during the installation of Che. Otherwise, the Che deployment uses the default configuration parameterized by the Operator.
This page is for platform administrators who install, configure, and manage Che on Kubernetes clusters. To learn more about common roles and example tasks referenced in Che documentation, see Common user roles and tasks.
-
An active
kubectlsession with administrative permissions to the Kubernetes cluster. See Overview of kubectl. -
chectl. See: Install the chectl management tool.
-
Create a
che-operator-cr-patch.yamlYAML file that contains the subset of theCheClusterCustom Resource to configure:spec: <component>: <property_to_configure>: <value> -
Deploy Che and apply the changes described in
che-operator-cr-patch.yamlfile:$ chectl server:deploy \ --che-operator-cr-patch-yaml=che-operator-cr-patch.yaml \ --platform <chosen_platform>
-
Verify the value of the configured property:
$ oc get configmap che -o jsonpath='{.data.<configured_property>}' \ -n eclipse-che