Created
August 22, 2021 19:37
-
-
Save oceanapplications/bc75b398e083f367db5c929f88aa2854 to your computer and use it in GitHub Desktop.
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: laravel-cron | |
namespace: kubernetes-for-laravel | |
labels: | |
tier: backend | |
spec: | |
schedule: "* * * * *" | |
jobTemplate: | |
metadata: | |
labels: | |
app: laravel-cron | |
tier: backend | |
spec: | |
template: | |
spec: | |
enableServiceLinks: false | |
restartPolicy: OnFailure | |
containers: | |
- name: laravel-cron | |
image: s937717/laravel | |
imagePullPolicy: Always | |
command: | |
- /bin/sh | |
- -c | |
- php /var/www/html/artisan schedule:run | |
env: | |
- name: DB_PASSWORD | |
valueFrom: | |
secretKeyRef: | |
key: password | |
name: mysql-password | |
envFrom: | |
- configMapRef: | |
name: laravel-env | |
imagePullSecrets: | |
- name: regcred |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment