I'm on my way to learn k8s, and I'd love to know how we can create boilerplate for cronjob.
I know it used to be follwoing.
kubectl run mycron --schedule "1 * * * *" --image nginx -o yaml --dry-run
.
Even it still outputs the boilerplate but it says following.
kubectl run --generator=cronjob/v1beta1 is DEPRECATED and will be removed in a future version. Use kubectl create instead.
However I couldn't find how to generate it with kubectl create
. Any ideas?