Last active
April 17, 2025 12:00
-
-
Save xorinzor/7aeebd6ffa09335d93dbf7347da7bbce to your computer and use it in GitHub Desktop.
Kubernetes CronJob for Bitnami Wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: batch/v1 | |
kind: CronJob | |
metadata: | |
name: wp-cron | |
spec: | |
schedule: "*/1 * * * *" | |
successfulJobsHistoryLimit: 1 | |
concurrencyPolicy: Forbid | |
jobTemplate: | |
spec: | |
template: | |
spec: | |
containers: | |
- name: wp-cron | |
image: busybox:latest | |
imagePullPolicy: IfNotPresent | |
command: | |
- /bin/sh | |
- -c | |
- wget -q https://{{ .Values.ingress.hostname }}/wp-cron.php?doing_wp_cron | |
restartPolicy: OnFailure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When following the instructions from https://docs.bitnami.com/general/apps/wordpress/configuration/disable-wordpress-cron/
Make sure you add the following to your
wp-config.php
:This CronJob will replace the crontab suggested by Bitnami for kubernetes instances.