Open konoox opened 9 months ago
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
?
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.-retention-full* attributes of the pg cluster definition.
BUT the pg-backup related k8s resources are well created but never cleaned up even with the retention attributes properly defined.
This problem lead to a quick accumulation of pg-backups and jobs k8s resources in the namespaces using a pg cluster with scheduled backups.
Steps to reproduce
Versions
Anything else?
No response