Gluttony-Cluster/jobs/test-ntfy.yaml
2024-06-23 21:00:25 -04:00

21 lines
497 B
YAML

apiVersion: batch/v1
kind: CronJob
metadata:
name: ntfy-notification-cronjob
namespace: default
spec:
schedule: "03 21 * * *"
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
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