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?