Pre-Migration preparations
Change values.yaml
Values under.Values.postgresql are also affected. Make the necessary changes to your custom values.yaml file.
The cognigy-live-agent deployment is now called
cognigy-live-agent-app. The change also applies to the service and ingress in your custom values.yaml file.
Old values
New values
Create backup-pod.yaml
A backup pod is required to access the PostgreSQL database. This pod will create a backup and restore it to the new database. The size of the backup pod must be at least three times bigger to store the dump.Calculate the size of the database
For knowing the size of the database, you can run the following command:backup-pod.yaml
Migration steps
Step 1. Set the replica count to 0
For app and worker replica sets, specify0 in the replica count. It ensures that the database will not have any activity and the data will be backed up safely.
In the previous version, the
cognigy-live-agent-app deployment is still called cognigy-live-agent.Step 2. Attach a shell to the PostgreSQL backup pod and make a backup of the Live Agent database
Log in to the postgres-backup pod and create a dump of thelive_agent_production database.
nohup and suffix & are used in the pg_dump command to run it in the background. You can bring the background command of the current session with the fg command and check the status of the background jobs with the jobs command.
jobs command should give no output.
Step 3. Delete the current release and check PVC reclaim policy
When the PostgreSQL and Redis versions have changed, the PVCs become incompatible with the new versions. To recover compatibility, delete the current release and the PVCs, then check the Live Agent PVC reclaim policy.Step 4. Delete or modify existing database secrets
The existing secrets need to be deleted or modified with the new keys. The system automatically generates new secrets in a new release if existing secrets are not specified in thevalues.yaml file.
- Delete the secrets (recommended)
- Modify the existing secrets
We recommend deleting the existing secrets and leaving the password fields commented in the values file for getting autogenerated ones.