Hi, I was unable to create a cronjob & pv, used the k8 doc template and ended up error,
"error: unable to recognize “a.yaml”: no matches for kind “CronJob” in version “batch/v1”
Googled and found beta1 needs to be added in api version & due to k8 version
apiVersion: batch/v1beta1 instead of apiVersion: batch/v1
In exam how do we manage these…
Only thought came to me was to create a template using imperative commands.
Not all resources can be created using imperative commands too!! like PV,PVC.
Any thoughts / help. Greatly appreciate…