Adding WP Cronjob here
parent
95b9ad79da
commit
f87005bb3a
@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: wp-cron
|
||||||
|
spec:
|
||||||
|
schedule: "30 * * * *"
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: wp-cron
|
||||||
|
image: busybox:1.28
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
command:
|
||||||
|
- /bin/wget
|
||||||
|
- --no-check-certificate
|
||||||
|
- -q
|
||||||
|
- "https://{{ .Values.smardigo-wordpress.wordpress.ingress.hostname }}/wp-admin.php"
|
||||||
|
restartPolicy: OnFailure
|
||||||
Loading…
Reference in New Issue