oc debug cronjob command failed with error "unable to extract pod template from type *v1.CronJob".

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content