Creating or migrating database schema

If you are installing the product for the first time, you need to run create schema.

Before you begin

Install database. For more information, see Installing and setting up the database.

Procedure

  1. Set the replica_count=0 for all the services except one service (admin or restapi).
  2. Increase the readiness and liveness probe for the service in the ipm_14.0.x_cr.yaml file as follows.
    
    admin:
        replica_count: 1
      ………………….
    readiness_probe:
         initial_delay_seconds: 3600
         timeout_seconds: 7200
         period_seconds: 7200
     liveness_probe:
         initial_delay_seconds: 3600
         timeout_seconds: 7200
         period_seconds: 7200
    
  3. Complete the deployment so that only one pod is up and running.
  4. Stop the services on the pod with the following command.
    cd /home/default 
    source .bash_profile
    ./stop.sh
  5. Run the schema creation script. For more information, see Run schema creation scripts.
  6. Optional: If the database schema exists, run only the migration scripts. For more information, see Database schema migration and Installing password security update.
  7. After updating the database schema, update the ipm_14.0.x_cr.yaml file to the default values by performing the deployment again.