oc debug cronjob command failed with error "unable to extract pod template from type *v1.CronJob".
Issue
-
While running oc debug cj/cronjob-name the command failed with below error:
$ oc debug cronjob/my-cronjob error: cannot debug my-cronjob: unable to extract pod template from type *v1.CronJob -
It is not possible to debug cronjobs
Environment
- Red Hat OpenShift Container Platform (RHOCP) 4.8.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.