diff --git a/slides/k8s/batch-jobs.md b/slides/k8s/batch-jobs.md index abc6890f..adbefc2a 100644 --- a/slides/k8s/batch-jobs.md +++ b/slides/k8s/batch-jobs.md @@ -96,6 +96,8 @@ class: extra-details - Example: `*/3 * * * *` means "every three minutes" +- The website https://crontab.guru/ can help to create cron schedules! + --- ## Creating a Cron Job @@ -166,46 +168,6 @@ class: extra-details - the deadline of the pod will only stop an individual pod ---- - -class: extra-details - -## What about `kubectl run` before v1.18? - -- Creating a Deployment: - - `kubectl run` - -- Creating a Pod: - - `kubectl run --restart=Never` - -- Creating a Job: - - `kubectl run --restart=OnFailure` - -- Creating a Cron Job: - - `kubectl run --restart=OnFailure --schedule=...` - -*Avoid using these forms, as they are deprecated since Kubernetes 1.18!* - ---- - -## Beyond `kubectl create` - -- As hinted earlier, `kubectl create` doesn't always expose all options - - - can't express parallelism or completions of Jobs - - - can't express healthchecks, resource limits - -- `kubectl create` and `kubectl run` are *helpers* that generate YAML manifests - -- If we write these manifests ourselves, we can use all features and options - -- We'll see later how to do that! - ??? :EN:- Running batch and cron jobs