Deploying or Upgrading Approval Engine
To deploy Approval Engine:
- Ensure the prerequisites.
- Follow the common CloudBlue Commerce component deployment procedure using the Approval Engine deployment parameters below in the config.yaml.
You can find the installed Approval Engine application in the Services > Applications menu in the Operations PCP.
Upgrading Approval Engine
To update Approval Engine, follow the common CloudBlue Commerce component update procedure using the Approval Engine deployment parameters below in the config.yaml.
Approval Engine Deployment Parameters
When installing or updating Approval Engine, use the parameters below in the config.yaml.
Component Name
approvalengineapp
Common Parameters
Parameter | Default value |
---|---|
javaopts | -XX:MetaspaceSize=96m -XX:MaxMetaspaceSize=256m -XX:MinRAMPercentage=30.0 -XX:MaxRAMPercentage=70.0 |
jdbcconnectionparams | ?sslmode=require&ApplicationName=approvalengineapp |
resources.requests.cpu | 500m |
resources.requests.memory | 1024Mi |
resources.limits.cpu | 2 |
resources.limits.memory | 2048Mi |
Specific Parameters
Parameter | Default value | Description |
---|---|---|
db_secret | oss-db | A K8s secret that contains Approval Engine database credentials |
Sample config.yaml
Default config.yaml:
--- components: approvalengineapp: {}
--- components: approvalengineapp: oauthkey: 212cbc7a-4148-4303-a674-e331903eb58d oauthsecret: 809f72d0-ccbb-4c39-917b-da0df58d7ae4 javaheapsize: "-XX:MinRAMPercentage=30.0 -XX:MaxRAMPercentage=70.0 -XX:MetaspaceSize=96m -XX:MaxMetaspaceSize=256m" # Load DB credentials from precreated secret db_secret: approvalengineapp-db dsport: 5432 mindbpoolsize: 1 maxdbpoolsize: 16 jdbcconnectionparams: ?sslmode=require&ApplicationName=approvalengineapp appserverdebug: false resources: requests: cpu: 500m memory: 1024Mi limits: cpu: 2 memory: 2048Mi
How to Obtain the Current config.yaml from CloudBlue Commerce
When updating CloudBlue Commerce components, you may need to obtain the current config.yaml.
To obtain the current config.yaml from CloudBlue Commerce, on a machine with kubectl, execute the following request:
kubectl -n NAMESPACE get secret config-yaml-backup -o "jsonpath={.data['config\.yaml']}" | base64 -d
Note: NAMESPACE is the namespace of your CloudBlue Commerce installation.
To find it, execute the following command:
kubectl describe svc oss-proxy | grep namespace
How to View the Deployment Parameters with Default Values for the Component Version You Want to Install (values.yaml)
To view the deployment parameters with default values (values.yaml) for the component version you want to install, run the following command from the machine with kubectl:
helm show values <component_name_for_config.yaml> --version <component_version> --username <username_for_deployment_repository> --password <username_for_deployment_repository> --repo <a_link_to_repository_with_CloudBlue Commerce_components>
For username and password to the deployment repository, please contact your Technical Account Manager.