Folks, quick question: on the second lightning lab, the cronjob exercise, the ap . . .

Fabio Cezar:
folks, quick question: on the second lightning lab, the cronjob exercise, the api shouldn’t be

apiVersion: batch/v1

instead of batch/betav1 ?

unnivkn:
Hi @Fabio Cezar since k8s version keeps changing it may vary… please try to create a simple cronjob using imperative command & check what it is showing in the apiVersion.

unnivkn:
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-cronjob-em-

Fabio Cezar:
thanks, will do right now ! I did using the kubernetes website template, and it was actually the same, just pointing the api error, give me 10 min and i’ll get back to you

Fabio Cezar:
@unnivkn imperative did point to beta, you’re right. The chronjob at the kubernetes version is on a different api version. Well, good lesson anyway. Thanks !

Alistair Mackay:
kubectl api-versions

That will give you the cluster’s current version for all resource types

Fabio Cezar:
thanks alistair !!!