|
|
|
@ -3,7 +3,8 @@ kind: CronJob
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: wp-cron
|
|
|
|
name: wp-cron
|
|
|
|
spec:
|
|
|
|
spec:
|
|
|
|
schedule: "* * * * *"
|
|
|
|
schedule: "30 * * * *"
|
|
|
|
|
|
|
|
concurrencyPolicy: Forbid
|
|
|
|
jobTemplate:
|
|
|
|
jobTemplate:
|
|
|
|
spec:
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
template:
|
|
|
|
@ -17,6 +18,8 @@ spec:
|
|
|
|
image: rancher/curlimages-curl:7.73.0
|
|
|
|
image: rancher/curlimages-curl:7.73.0
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
command:
|
|
|
|
command:
|
|
|
|
- /bin/sleep
|
|
|
|
- /usr/bin/wget
|
|
|
|
- "3600"
|
|
|
|
- -q
|
|
|
|
|
|
|
|
- -O /tmp/wp-cron.php
|
|
|
|
|
|
|
|
- https://{{ index .Values "smardigo-wordpress" "wordpress" "ingress" "hostname" }}/wp-cron.php
|
|
|
|
restartPolicy: OnFailure
|
|
|
|
restartPolicy: OnFailure
|
|
|
|
|