Solved

Karbon Kubernetes CronJob

  • 3 March 2022
  • 1 reply
  • 31 views

Badge

When I run the command “kubctl api-resources”, I get a list of all available resources types. This list includes the CronJob type in the apigroup batch. However, when I want to deploy a cronjob I get the message: no matches for kind “CronJob” in version “batch/v1”.

apiVersion: batch/v1
kind: CronJob
metadata:
  name: devel-sched
  namespace: devel

Does anybody know, how to fix this?

icon

Best answer by Theo Bot 3 March 2022, 11:52

View original

This topic has been closed for comments

1 reply

Badge

Hi,

 

Found it. The apiVersion should be batch/v1beta1

 

/Theo