Added cronjob to check for new chapters every 15 minutes
This commit is contained in:
parent
346fc3cad8
commit
e23046dac3
@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: check-new-royalroad-chapters
|
||||||
|
namespace: app-notifications
|
||||||
|
spec:
|
||||||
|
schedule: "*/15 * * * *"
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: curl
|
||||||
|
image: curlimages/curl:latest
|
||||||
|
command: ["curl"]
|
||||||
|
args:
|
||||||
|
- -s
|
||||||
|
- -X
|
||||||
|
- GET
|
||||||
|
- http://service-royalroad-chapters-internal:5000/royalroad
|
||||||
|
restartPolicy: OnFailure
|
||||||
Loading…
x
Reference in New Issue
Block a user