percona-postgresql-operator
percona-postgresql-operator copied to clipboard
Sheduled kubernetes pg-backup objects are not automatically cleaned up
Report
Sheduled kubernetes pg-backup objects are not automatically cleaned up
More about the problem
Since the 2.3.0 k8s Percona Postgres operator upgrade, pg-backup resources are created for each scheduled backup (K8SPG-410)
The pgbackrest backups and related items saved in the storage are still clean-up up properly following the retention rules defined in the spec.backups.pgbackrest.global.
Steps to reproduce
- Create a pg cluster with a backup storage and schedule section defined and a retention period
- On the scheduled time, pg-backup resource is created with the related job, pod, pgbackrest backup and items in the storage
- At the end of the retention period, pgbackrest backup and items are removed from the storage but none of the k8s resources (pg-backup and job) are not deleted
Versions
- Kubernetes - v1.27.6
- Operator - Percona for PostgreSQL 2.3.1
- Database - PostgreSQL 15.5
Anything else?
No response
Hi @konoox, we have a task about it https://perconadev.atlassian.net/browse/K8SPG-502. We will fix this bug in the next release.
I have this problem using 2.4.0. pg-backup
are being deleted but jobs
in Kubernetes are not being cleaned up.
Should I set spec.backups.pgbackrest.jobs.ttlSecondsAfterFinished
?