Karbon Kubernetes CronJob | Nutanix Community
Skip to main content
Solved

Karbon Kubernetes CronJob

  • 3 March 2022
  • 1 reply
  • 264 views

Forum|alt.badge.img

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?

Best answer by Theo Bot

Hi,

 

Found it. The apiVersion should be batch/v1beta1

 

/Theo

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

Forum|alt.badge.img
  • Author
  • Voyager
  • 1 reply
  • Answer
  • March 3, 2022

Hi,

 

Found it. The apiVersion should be batch/v1beta1

 

/Theo