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
DaemonSet Controller doesn't delete orphaned pods #71349
Comments
/sig apps |
/assign janetkuo |
/assign @k82cn |
We have PodGC to clean up orphaned pods every 20s, is that enough? |
I'm removing pods that have only node affinity set and don't have pod.Spec.NodeName set. These pods were never touched by scheduler before node was removed and after node was removed can't be scheduled as node is doesn't exist anymore. Such pods are pending forever and PodGC can't remove them as pod.Spec.NodeName is empty. |
Yes, that's right :) let me take few time to review the PR, thanks. |
@k82cn Should I backport fix to 1.13 and 1.12? |
+1 |
What happened:
DaemonSet doesn't delete pods that:
What you expected to happen:
Pod should be deleted when node is removed.
How to reproduce it (as minimally and precisely as possible):
I encountered this problem when doing tests with cluster with 1000 nodes and 30000 pods running. During tests I was deleting and adding nodes using GCE API without draining them. I reproduced problem on much smaller cluster but it requires stopping K8s scheduler.
Scenario:
Anything else we need to know?:
Environment: GKE
kubectl version
):/kind bug
The text was updated successfully, but these errors were encountered: