How to check when "kubectl delete" failed with "timeout waiting for ... to be synced" How to check when "kubectl delete" failed with "timeout waiting for ... to be synced" kubernetes kubernetes

How to check when "kubectl delete" failed with "timeout waiting for ... to be synced"


Check if kubectl describe pod <pod name> (associated pod of the job) still returns something, which would:

In that state, you can then consider a force deletion.


I think this is the same as the problem reported in github:

Cannot delete jobs when their associated pods are gone

This is reported by several people, and it is not fixed still.

And can use the "-v=X" (e.g. -v=8) option for the kubectl command, it will give more detailed debug info.


As taken from https://github.com/kubernetes/kubernetes/issues/43168#issuecomment-375700293

Try using --cascade=false in your delete job command.

It worked for me