-
Notifications
You must be signed in to change notification settings - Fork 1
/
k8s-cron.yaml
34 lines (34 loc) · 962 Bytes
/
k8s-cron.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
apiVersion: batch/v1beta1
kind: CronJob
metadata:
labels:
app: sorry-cypress-run-cleaner
name: sorry-cypress-run-cleaner
spec:
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
jobTemplate:
spec:
backoffLimit: 3
template:
metadata:
labels:
app: sorry-cypress-run-cleaner
spec:
containers:
- name: sorry-cypress-run-cleaner
image: ghcr.io/sendible-labs/sorry-cypress-run-cleaner:stable
imagePullPolicy: Always
env:
- name: run_days_to_keep
value: "200"
- name: sorry_cypress_api_url
value: "http://api-sorry-cypress.sorry-cypress.svc.cluster.local"
resources:
requests:
cpu: 50m
memory: 60Mi
restartPolicy: Never
suspend: false
schedule: '0 1 * * *'