Update containerized PostgreSQL pod
The procedure describes the steps to update the image for NetBackup PostgreSQL pod in 11.0.
To update the containerized PostgreSQL pod for NetBackup version 11.0
Consider a scenario - In 11.0-xxxx deployment with netbackup-postgresql version 16.10.x.x, upgrade to netbackup-postgresql version 16.10.x.x using tag 11.0-patch2
- Suspend the backup job processing using the command:
nbpemreq -suspend_scheduling
- Load, tag, and push the new NetBackup PostgreSQL image using the commands:
To load the PostgreSQL imagedocker load -i VRTSnetbackup-postgresql-16.4.0002.tar.gz
To load the PostgreSQL-upgrade imagesdocker load -i VRTSnetbackup-postgresql-upgrade-16.4-0002.tar.gz
To tag the new imagesdocker tag netbackup/postgresql:16.4-0002 exampleacr.azurecr.io/netbackup/postgresql:11.0-patch2
docker tag localhost/netbackup/postgresql-upgrade:16.4-0002 exampleacr.azurecr.io/netbackup/postgresql-upgrade:11.0_patch2
To push the PostgreSQL imagedocker push exampleacr.azurecr.io/netbackup/postgresql:11.0-patch2
docker push exampleacr.azurecr.io/netbackup/postgresql-upgrade:11.0-patch2
- Upgrade the PostgreSQL using Helm chart:
To save PostgreSQL chart values to a file: helm show values postgresql-11.0-xx.tgz > postgres-values.yaml
vi postgres-values.yaml
Upgrade the PostgreSQL: helm upgrade --install postgresql postgresql-11.0-xx.tgz -f postgres-values.yaml -n netbackup
- Resume the backup job processing using the command:
nbpemreq -resume_scheduling