Let's now use the CronJob template.
kubectl apply -f cronjob.yaml
kubectl get cronjobs
kubectl describe cronjob
Get the pod's log. Something starting with hello-
kubectl get pods
Get the container's log. You should see Hello from the Job.
kubectl logs <podName>
kubectl delete -f cronjob.yaml