123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- ---
- apiVersion: v1
- kind: PersistentVolume
- metadata:
- name: source
- spec:
- capacity:
- storage: 5Mi
- volumeMode: Filesystem
- accessModes:
- - ReadWriteOnce
- persistentVolumeReclaimPolicy: Retain # Keep 4eva
- storageClassName: default
- mountOptions:
- - hard
- - nfsvers=3
- nfs:
- path: /mnt/DroboFS/Shares/Public/important
- server: 10.42.42.10
- claimRef:
- name: source
- namespace: default
- ---
- apiVersion: v1
- kind: PersistentVolumeClaim
- metadata:
- name: source
- annotations:
- nfs.io/storage-path: "source"
- spec:
- storageClassName: default
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 5Mi
- status: {}
- ---
- apiVersion: v1
- kind: PersistentVolume
- metadata:
- name: aws-backup
- spec:
- capacity:
- storage: 5Mi
- volumeMode: Filesystem
- accessModes:
- - ReadWriteOnce
- persistentVolumeReclaimPolicy: Retain # Keep 4eva
- storageClassName: default
- mountOptions:
- - hard
- - nfsvers=3
- nfs:
- path: /mnt/DroboFS/Shares/Kubernetes/volumes/static/aws-backup
- server: 10.42.42.10
- claimRef:
- name: aws-backup
- namespace: default
- ---
- apiVersion: v1
- kind: PersistentVolumeClaim
- metadata:
- name: aws-backup
- annotations:
- nfs.io/storage-path: "aws-backup"
- spec:
- storageClassName: default
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 5Mi
- status: {}
- ---
- apiVersion: batch/v1
- kind: CronJob
- metadata:
- name: cron-aws-backup
- spec:
- schedule: "@daily"
- concurrencyPolicy: Forbid
- # Start up to 8 hours late
- startingDeadlineSeconds: 28800
- jobTemplate:
- spec:
- ttlSecondsAfterFinished: 28800
- backoffLimit: 4
- template:
- spec:
- containers:
- - name: cron-aws-backup
- image: fdamstra/aws-backup
- env:
- - name: AWS_DEFAULT_REGION
- value: us-east-2
- - name: DEST_S3
- value: s3://backups.monkeybox.org/io/important/
- envFrom:
- - secretRef:
- name: aws-creds
- volumeMounts:
- - name: aws-backup
- mountPath: /scratch/
- - name: source
- mountPath: /source/
- dnsPolicy: "None"
- dnsConfig:
- nameservers:
- - 10.42.42.239
- - 10.42.42.1
- searches:
- - default.svc.cluster.local
- - svc.cluster.local
- - cluster.local
- options:
- - name: ndots
- value: "2"
- - name: edns0
- - name: trust-ad
- restartPolicy: Never
- volumes:
- - name: aws-backup
- persistentVolumeClaim:
- claimName: aws-backup
- - name: source
- persistentVolumeClaim:
- claimName: source
|