Console hanging when deleting Job in Kubernetes

6/17/2016

I'm trying to delete a Job in Kubernetes, but every time I run "kubectl delete job [JOBNAME]" it just "hangs" indefinitely.

How can I diagnose this issue to try and determine why the Job's not able to be deleted?

-- srkiNZ84
kubernetes

1 Answer

9/20/2016

Turn up your debugging by set the verbosity to 9. You will see that kubectl is actually clearing out a lot of different resources created by the job. ctrl-c out of it.

Use --cascade=false it will actually complete shortly. see issue 8598

-- Devy
Source: StackOverflow