-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcronjob.yaml
35 lines (35 loc) · 891 Bytes
/
cronjob.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: backend-cron
spec:
concurrencyPolicy: Replace
failedJobsHistoryLimit: 1
jobTemplate:
spec:
activeDeadlineSeconds: 120
backoffLimit: 1
template:
spec:
containers:
- args:
- /bin/bash
- -c
- php artisan schedule:run
envFrom:
- configMapRef:
name: backend-config
image: changeme
imagePullPolicy: Always
name: artisan-schedule
resources:
limits:
cpu: 200m
memory: 200M
requests:
cpu: 100m
memory: 100M
restartPolicy: Never
schedule: "*/1 * * * *"
startingDeadlineSeconds: 30
successfulJobsHistoryLimit: 1