Gluttony-Cluster/jobs/test-ntfy.yaml

21 lines
497 B
YAML
Raw Normal View History

2024-06-24 00:51:11 +00:00
apiVersion: batch/v1
kind: CronJob
metadata:
name: ntfy-notification-cronjob
2024-06-24 00:54:09 +00:00
namespace: default
2024-06-24 00:51:11 +00:00
spec:
2024-06-24 01:00:25 +00:00
schedule: "03 21 * * *"
2024-06-24 00:51:11 +00:00
jobTemplate:
spec:
template:
spec:
2024-06-24 00:57:48 +00:00
restartPolicy: OnFailure
2024-06-24 00:51:11 +00:00
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
2024-06-24 00:59:30 +00:00