Application Delivery Management
Application Modernization & Connectivity
CyberRes
IT Operations Management
Environment:
UCMDB containerized
Situation:
How to change the DB host in containerized UCMDB.
Resolution:
To point the containerized CMS to a new DB create a new custom values.yaml file, or edit the custom values.yaml file, that was created during the deployment of the UCMDB.
Refer to: https://docs.microfocus.com/doc/UCMDB_Containerized/2022.05/CmsPrepareCreateYaml
The values for DB are:
global.database.host (Database server host name) Example: db.example.com
global.database.port (Database server port) Example: 5432
Refer to the doc if to assess if change is needed to anymore values.
https://docs.microfocus.com/doc/UCMDB_Containerized/2022.05/CmsPrepareCreateYaml
After the values are modified, run the following command to update the changes:
helm upgrade <CMS RELEASE NAME> <CMS CHART FILE> -n <NAMESPACE> -f <VALUES YAML FILE>
Where,
<CMS RELEASE NAME> is the release name to be created by Helm for the CMS deployment.
<CMS CHART FILE> is the tar file containing the CMS installation charts.
<NAMESPACE> is the unique namespace of the CMS deployment.
<VALUES YAML FILE> is your custom values.yaml file with properties configured for the CMS deployment.
For example:
helm upgrade cms-prod CMS_Helm_Chart-2021.0x/cms-helm-charts/charts/cms-1.x.0+20210x00.xx.tgz -n cms-prod -f my-values.yaml
Reference: https://docs.microfocus.com/doc/UCMDB_Containerized/2022.05/FailToInstallDefineDBname
Additional Information
https://docs.microfocus.com/doc/UCMDB_Containerized/2022.05/CmsPrepareCreateYaml
https://docs.microfocus.com/doc/UCMDB_Containerized/2022.05/FailToInstallDefineDBname