-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patharchived-gc.yaml
36 lines (36 loc) · 950 Bytes
/
archived-gc.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
36
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: archived-gc
namespace: archived
labels:
app.kubernetes.io/name: archived-gc
app.kubernetes.io/app: archived-gc
spec:
schedule: "48 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
metadata:
name: archived-gc
labels:
app.kubernetes.io/name: archived-gc
app.kubernetes.io/app: archived-gc
spec:
containers:
- name: gc
image: ghcr.io/teran/archived/gc:latest
imagePullPolicy: Always
env:
- name: METADATA_DSN
valueFrom:
secretKeyRef:
name: metadatadb-app
key: uri
- name: LOG_LEVEL
value: "trace"
- name: DRY_RUN
value: "false"
restartPolicy: OnFailure