Skip to content

Instantly share code, notes, and snippets.

@pepijnblom
Created August 19, 2020 19:05
Show Gist options
  • Save pepijnblom/3a3acc076ae6f2cfe72afef7f75ab7c9 to your computer and use it in GitHub Desktop.
Save pepijnblom/3a3acc076ae6f2cfe72afef7f75ab7c9 to your computer and use it in GitHub Desktop.
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: magento-upgrade
spec:
concurrencyPolicy: Forbid
failedJobsHistoryLimit: 0
jobTemplate:
spec:
activeDeadlineSeconds: 600
template:
spec:
containers:
- args:
- /var/www/bin/magento
- setup:upgrade
- -vvv
command:
- /usr/local/bin/php
image: magento
imagePullPolicy: IfNotPresent
name: magento
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: OnFailure
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
schedule: 0 5 31 2 * ######## THIS IS A HACK, THIS DATE DOES NOT EXIST #######
suspend: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment