Skip to content
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

directory created in persistent volume claim disk not deleted when the resources is deleted #804

Open
johnmba opened this issue Feb 19, 2025 · 1 comment
Labels
needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@johnmba
Copy link

johnmba commented Feb 19, 2025

I have been this issue for some days now and I have used so many approach I could find in googling but have keep having the same issue.
The issue is that I claimed a persistent volume for a postgresql database but because there was an error in the initialization script, I deleted the the deployment and persistent volume claim through

  • kubectl kubectl delete deployments --all then kubectl delete pvc --all
  • through the gcloud command in the command line gcloud compute delete pvc-19874143-f6ec-4808-85eb-c1f3e3572294

The issues is that when I recreate the resources, and deploy my database, the initialization is skipped and the permission right on the existing directory is being fixed as shown in the pod logs kubectl logs <pod name>

The expectation is that the database is initialized since the persistent volume has been deleted and recreated, hence, the previous directory shouldn't exists.

@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If the repository mantainers determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

2 participants