DEV-810 Fix cronjob

cherry-pick-9c6aec87
Michael Haehnel 3 years ago
parent c810ee3a03
commit dee628962b
No known key found for this signature in database
GPG Key ID: D2FA233B52AEC75C

@ -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

Loading…
Cancel
Save