From cd908d9c14ba3b0d3c3189a44b7dfa5e4f0ac2a3 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 5 Aug 2025 21:50:30 -0700 Subject: [PATCH] Sample cronjob for k3s --- infra/nigel-k3s/sample-cron.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 infra/nigel-k3s/sample-cron.yaml 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