Task #14636
closedCascading deletion not working in `theia-dev` K8s Cluster
0%
Description
Hey folks,
I hope you all had a great vacation
Unfortunately, I am facing some issues with cascading deletion on the theia-dev cluster ([https://k8s-theia-cp.ase.cit.tum.de:6443|https://k8s-theia-cp.ase.cit.t/]). Even though the ownerReferences are set correctly, the child-resources are not deleted when the owner/parent is deleted.
I conducted some simple tests to verify the situation. Let me introduce you to the situation:
- Installed basic deployment
{code:java}
iVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.21.3
ports:
- containerPort: 80{code}
- This creates:
- 1 Deployment
nginx-deployment - 1 ReplicaSet
nginx-deployment-85484bf959withownerReference= deploymentnginx-deployment - 3 Pods with each
ownerReference= replicasetnginx-deployment-85484bf959
All of them have "blockOwnerDeletion":true, I do not know whether this is important...
=> The setup should work for cascading deletes.
- Delete the deployment. It is expected that the replicaset and consequently also the pods are deleted. However, this is not the case.
Please let me know If I can help you with fixing this problem. I'd also greatly appreciate a expected fix date to estimate a bit better as it's currently blocking quite a significant part of my master's thesis
Thank you so much!