backup-cronjob.yaml 726 Bytes
Newer Older
snehal jagtap's avatar
snehal jagtap committed
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
apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: timeseries-backup-job
spec:
  schedule: "*/5 * * * *"
  concurrencyPolicy: Forbid
  startingDeadlineSeconds: 100
  jobTemplate:
    spec:
      template:
        spec:
          containers:
            - name: timeseries-backup-job
              image: IMAGE_NAME
              resources:
                requests:
                  memory: "4Gi"
              env:
                - name: ENV-TAG-KEY
                  value: "ENV_TAG"
                - name: GOOGLE-PROJECT-NAME-KEY
                  value: "GLOBAL_GOOGLE_PROJECT_NAME"
                - name:  BUCKET-NAME-KEY
                  value: "ENV_TAG-prodops-backup-bucket"
          restartPolicy: Never