diff --git a/infra/nigel-k3s/sample-cron.yaml b/infra/nigel-k3s/sample-cron.yaml new file mode 100644 index 0000000..81d5b61 --- /dev/null +++ b/infra/nigel-k3s/sample-cron.yaml @@ -0,0 +1,19 @@ +apiVersion: batch/v1 +kind: CronJob +metadata: + name: hello +spec: + schedule: "* * * * *" + jobTemplate: + spec: + template: + spec: + containers: + - name: hello + image: busybox:1.28 + imagePullPolicy: IfNotPresent + command: + - /bin/sh + - -c + - date; echo Hello from the sample cron-container + restartPolicy: OnFailure