Skip to content

Delete PVC /Volumes during down-scaling #443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sdudoladov opened this issue Jan 9, 2019 · 2 comments
Closed

Delete PVC /Volumes during down-scaling #443

sdudoladov opened this issue Jan 9, 2019 · 2 comments

Comments

@sdudoladov
Copy link
Member

Right now Persistent volume claims (PVCs) are removed only on cluster deletion. In the case the number of pods in a PG cluster is simply reduced, PVCs/volumes of no longer running pods remain. We may consider removing them altogether.

@hjacobs
Copy link
Contributor

hjacobs commented Mar 24, 2020

It's good to see Postgres Operator handle cleaning up volumes in case of "scale down". kube-janitor can take care of deleting the PVCs when the StatefulSet is completely deleted: hjacobs/kube-janitor#62

@FxKu FxKu removed this from the 1.5 milestone Apr 20, 2020
@FxKu
Copy link
Member

FxKu commented Jan 4, 2024

Now solved with persistent_volume_claim_retention_policyoption, see #2343

@FxKu FxKu closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants