lumenInit/resources/kubernetes/cron-mysql-backup.yml
2019-09-26 16:06:03 +02:00

20 lines
493 B
YAML

apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: mysql-backup
namespace: sampleapp
spec:
schedule: "10 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: mysql-backup
image: docker.keks.cloud/backup/mysql:latest
envFrom:
- configMapRef:
name: env-mysql-backup
restartPolicy: OnFailure
imagePullSecrets:
- name: docker-keks-cloud