Verified Commit 2e64d90c authored by justin's avatar justin
Browse files

Add rclone job for Prometheus metrics bucket.

parent d08da83d
Pipeline #631 passed with stage
in 22 seconds
......@@ -93,3 +93,35 @@ spec:
secret:
secretName: rclone-backup
restartPolicy: OnFailure
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: rclone-gitlab-prometheus-to-dropbox
namespace: gitlab
spec:
schedule: "0 16 * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: rclone-to-dropbox
image: rclone/rclone
args:
- --config
- /secrets/rclone-backup/rclone.conf
- -v
- copy
- --no-traverse
- palpantlab-gcs:gke-gitlab-prometheus-backup
- dropbox:gke-gitlab-prometheus-backup
volumeMounts:
- name: rclone-backup-secret
mountPath: /secrets/rclone-backup
readOnly: true
volumes:
- name: rclone-backup-secret
secret:
secretName: rclone-backup
restartPolicy: OnFailure
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment