Enabling the readiness init containers for the Operator installer

The readiness init containers are not enabled by default, so to use them you first have to enable them. To enable the readiness init containers for the Che installed by the Operator installer:

Prerequisites
  • Eclipse Che installed by the Operator installer.

Procedure
  1. Find the name of the Che Operator Deployment. Usually it is che-operator:

    $ kubectl get deployments -n eclipse-che
  2. Edit the Deployment as follows: Under spec.template.spec.containers[0].env of the Operator Deployment, insert the following lines:

     - name: ADD_COMPONENT_READINESS_INIT_CONTAINERS (1)
       value: "true"
    1 ADD_COMPONENT_READINESS_INIT_CONTAINERS is an environment variable.
  3. Wait while Che Operator restarts some components.

Repeat these steps after each Che upgrade when a new Operator Deployment is created.