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.
Prerequisites
-
Access to an administrator account on an instance of Kubernetes or OpenShift.
-
The chectl tool is available. See Using the chectl management tool.
Procedure
-
Create a
che-operator-cr-patch.yaml
YAML file that contains the subset of theCheCluster
Custom Resource to configure:spec: <component>: <property-to-configure>: <value>
-
Deploy Che and apply the changes described in
che-operator-cr-patch.yaml
file:$ {prod-cli} server:deploy \ --che-operator-cr-patch-yaml=che-operator-cr-patch.yaml \ --platform <chosen-platform>
Verification
-
Verify the value of the configured property:
$ oc get configmap che -o jsonpath='{.data.<configured-property>}' \ -n eclipse-che
Additional resources