blob: dd1caa9ec10a42aca2ec315e3afebacb720f5d7a [file] [log] [blame]
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: debian-buster
spec:
schedule: "@midnight"
jobTemplate:
spec:
template:
spec:
containers:
- name: aptly-api
image: gcr.io/mendel-linux-cloud-infra/aptly-api:latest
imagePullPolicy: Always
args:
- bash
- -c
- "/update-mirror.sh debian-buster"
volumeMounts:
- mountPath: /var/lib/aptly-api
name: aptly-state
volumes:
- name: aptly-state
persistentVolumeClaim:
claimName: aptly-state
restartPolicy: OnFailure