26 lines
694 B
YAML
26 lines
694 B
YAML
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: dancefetcher
|
|
name: dancefetcher
|
|
spec:
|
|
schedule: '0 0 * * *'
|
|
concurrencyPolicy: Forbid
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: dancefetcher
|
|
image: oci.unbound.se/dancefinder/dancefetcher@sha256:fed388a6a98b624384be32f85063851a6c8b30dfe9103129a011ecb9276b0afb:${COMMIT}
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
cpu: 600m
|
|
memory: 200Mi
|
|
requests:
|
|
cpu: 20m
|
|
memory: 30Mi
|
|
restartPolicy: OnFailure
|