From 485b8f1b3b8bf76cbfb9aca806165697165fd245 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Sun, 23 Jun 2024 20:51:11 -0400 Subject: [PATCH] Add test cronjob --- jobs/test-ntfy.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 jobs/test-ntfy.yaml diff --git a/jobs/test-ntfy.yaml b/jobs/test-ntfy.yaml new file mode 100644 index 0000000..cb8f848 --- /dev/null +++ b/jobs/test-ntfy.yaml @@ -0,0 +1,18 @@ +apiVersion: batch/v1 +kind: CronJob +metadata: + name: ntfy-notification-cronjob +spec: + schedule: "55 20 * * *" + jobTemplate: + spec: + template: + spec: + containers: + - name: ntfy-notifier + image: curlimages/curl:7.80.0 + command: ["/bin/sh", "-c"] + args: + - | + curl -X POST -d "this is a test notification from a k3s cronjob!" https://ntfy.sh/test + restartPolicy: OnFailure