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 + +