Verified Commit 93cedcb5 authored by justin's avatar justin
Browse files

Add SFO backup of ubuntu-node-01 backups (which live on the NAS).

parent ce1e8f02
variables:
GOOGLE_APPLICATION_CREDENTIALS: /secret/keyfile.json
k8s-deploy:
k8s-deploy-gke:
stage: deploy
image: lachlanevenson/k8s-kubectl
script:
......@@ -12,3 +12,14 @@ k8s-deploy:
- k8s
- gke
- west1-b
k8s-deploy-sfo:
stage: deploy
image: lachlanevenson/k8s-kubectl
script:
- kubectl apply -f deploy/kubectl-apply/sfo
only:
- master
tags:
- k8s
- sfo
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: rclone-ubuntu-node-01-backups-to-dropbox
namespace: prod
spec:
schedule: "0 7 * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: rclone-to-dropbox
image: rclone/rclone
args:
- --config
- /secrets/rclone-backup/rclone.conf
- sync
- justin-smb-home:/nas/home/ubuntu-node-01
- dropbox:ubuntu-node-01-deja-vu
volumeMounts:
- name: rclone-backup-secret
mountPath: /secrets/rclone-backup
readOnly: true
- name: nas-justin-home
mountPath: /nas/home
readOnly: true
volumes:
- name: rclone-backup-secret
secret:
secretName: rclone-backup
- name: nas-justin-home
flexVolume:
driver: "fstab/cifs"
fsType: "cifs"
secretRef:
name: "cifs-secret"
options:
networkPath: "//192.168.0.10/home"
mountOptions: "dir_mode=0400,file_mode=0400,noperm"
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