From 6e1a9925ea2d5627ca8ddb8eab0a911df39f5548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Wed, 29 Sep 2021 19:24:30 +0200 Subject: [PATCH] =?UTF-8?q?=E2=8C=9A=EF=B8=8F=20Add=20crontab.guru=20link;?= =?UTF-8?q?=20remove=20old=201.18=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- slides/k8s/batch-jobs.md | 42 ++-------------------------------------- 1 file changed, 2 insertions(+), 40 deletions(-) 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