Does Kubernetes Job/CronJob support diferent objects then Pods?

10/8/2019

I want to know if I can manipulate different CRD's in my Job/CronJob in kubernetes. The documentation only show's a pod template, but I want to use different objects.

-- Gabriel Dantas
kubernetes
workflow

1 Answer

10/9/2019

No, Kubernetes does not support any other resource but pods, as these are the only resources that run containers in Kubernetes and Kubernetes, will need to spin up a Pod in order to run your task

If you want to setup a CronJob to use your CRD's then you might need to create your own CronJob spec, a very good example of this would be the Kubebuilder tutorial, they rebuild the whole CronJob

-- Spazzy757
Source: StackOverflow