- Create a cronjob using Kubectl, from an existing Cronjob spec (yaml file):
kubectl create -f https://k8s.io/examples/application/job/cronjob.yaml
- View CronJob details using Kubectl:
kubectl get cronjob hello
- Delete a CronJob using Kubectl:
kubectl delete cronjob hello