Skip to content

51. ConfigMaps

The Operator stores its configuration in a number of ConfigurationMaps. These ConfigurationMaps can be used to change more advanced configurations that can not be configured in the KieApp YAML. In the case the Operator upgrades the version of your IBAMOE environment, the Operator is aware that one of the ConfigMaps has changed and will make a backup of it during the upgrade.

51.1 Viewing and editing ConfigMaps

A powerful feature of OpenShift are ConfigMaps which provide mechanisms to inject containers with configuration data while keeping containers agnostic of OpenShift Container Platform. A ConfigMap can be used to store fine-grained information like individual properties or coarse-grained information like entire configuration files or JSON blobs. In this section, we will modify some of the default health properties that are different than the defaults provided with IBAMOE and we want them to roll out to every container that gets created with the operator.

  1. In the OpenShift Console, open Workloads → Config Maps. Config Maps

  2. Note that the Operator keeps the current ConfigMaps, and the ones of the last 2 versions.

  3. Click on the kieconfigs-7.10.1 ConfigMap and open the YAML tab.

  4. Explore the configuration options.

  5. Set the initialDelaySeconds of the livenessProbe of the Business Central console from 180 to 240.

  6. Click the Save button to save the configuration.

  7. Go to "Workloads → Deployment Configs", open the rhpam-trial-rhpamcentr Deployment Config and open the YAML tab.

  8. Find the LivenessProbe initialDelaySeconds configuration and notice that it’s still set to 180.

  9. Delete the DeploymentConfig. This will have the Operator reconciliation recreate the DC.

  10. Open the YAML configuation of this recreated DeploymentConfig.

  11. Find the LivenessProbe initialDelaySeconds configuration and note that this time it has been set to 240, the value set in the ConfigMap.

51.2 Deleting an application

Apart from provisioning an IBAMOE application, the Operator also allows us to easily delete an application.

  1. Navigate to Operators → Installed Operators → Business Automation → KieApp.

  2. Click on the kebab icon of the rhpam-trial KieApp and click Delete. Delete trial

  3. Navigate back to Workloads → Deployment Configs and note that the IBAMOE Deployment Configs have been removed. Validate deletion


Last update: 2024-10-23