-
Notifications
You must be signed in to change notification settings - Fork 991
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
quick create-delete leaves orphaned objects #551
Comments
Both options need to be investigated with care, the only real delete we care about is the delete of the "postgresql" object. Other objects can be deleted (e.g. the statefulset) and no interruption or impact is expected. |
@Jan-M this is what I'm seeing. I have Terraform scripts that build and tear down the whole cluster, but the secondary read replica we spawn never gets removed even though the operator and the
The Other resources are also left behind, secrets, services, endpoints, persistent volumes + claims. What is the best way to handle this? FYI, the logs for that orphaned pg cluster pod, just spewing this error over and over from Patroni:
It looks like the secret it had been using was deleted for the service account which causes it to just go into a continuous failed state:
EDIT -- I understand why the pv/pvc aren't deleted. That's undesirable for a
This may be why the |
But it is followed up by deletePods if I see this correctly. But you are right, we will look into the right place of the docs on how to delete a statefulset. I did not know that the delete maybe does not delete pod. Maybe got mixed up here, where it is mentioned that kubectl scales down too. |
Orphaned pods/endpoints are left in the cluster if the
ADD
event is followed byDELETE
within a short time period for the same cluster.This error manifests as
reproducible both with
kind
and actualk8s
this issue also prevents creating a new cluster with the same name afterwards
The text was updated successfully, but these errors were encountered: