From a3aa5dd4d0ac5687b7cc8d14c14dbe22390ab9a1 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 18 Oct 2022 14:11:15 +0200 Subject: [PATCH] =?UTF-8?q?hinzugef=C3=BCgt=20eine=20CronJob=20Definition?= =?UTF-8?q?=20mit=20einer=20Ausgabe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kubernetes/LFS258/cron-job-with-output.yaml | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Kubernetes/LFS258/cron-job-with-output.yaml diff --git a/Kubernetes/LFS258/cron-job-with-output.yaml b/Kubernetes/LFS258/cron-job-with-output.yaml new file mode 100644 index 0000000..73859a2 --- /dev/null +++ b/Kubernetes/LFS258/cron-job-with-output.yaml @@ -0,0 +1,24 @@ +apiVersion: batch/v1 +kind: CronJob +metadata: + name: date-job +spec: + schedule: "*/1 * * * *" + jobTemplate: + metadata: + name: cron-job-hello + spec: + template: + metadata: + name: hello + spec: + containers: + - name: hello + image: busybox + args: + - /bin/bash + - -c + - date; echo "hello from kubernetes cluster" + restartPolicy: OnFailure + +