update volume to use fastaccess instead
This commit is contained in:
@@ -0,0 +1,77 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-notes-backup
|
||||||
|
namespace: nextcloud
|
||||||
|
spec:
|
||||||
|
schedule: "0 0 * * *"
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
ttlSecondsAfterFinished: 100
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: notes-backup
|
||||||
|
image: alpine
|
||||||
|
env:
|
||||||
|
- name: PI_USER_USERNAME
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: nextcloud-credentials
|
||||||
|
key: PI_USER_USERNAME
|
||||||
|
- name: PI_USER_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: nextcloud-credentials
|
||||||
|
key: PI_USER_PASSWORD
|
||||||
|
command: ["/bin/sh","/config/export_notes.sh"]
|
||||||
|
volumeMounts:
|
||||||
|
- name: notes
|
||||||
|
mountPath: /backup
|
||||||
|
- name: nextcloud-webserver
|
||||||
|
mountPath: /var/www/html
|
||||||
|
- name: scripts
|
||||||
|
mountPath: /config
|
||||||
|
volumes:
|
||||||
|
# - name: notes
|
||||||
|
# persistentVolumeClaim:
|
||||||
|
# claimName: notes
|
||||||
|
- name: notes
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: nextcloud-notes-backup
|
||||||
|
- name: nextcloud-webserver
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: nextcloud-webserver
|
||||||
|
- name: scripts
|
||||||
|
configMap:
|
||||||
|
name: nextcloud-export-scripts
|
||||||
|
defaultMode: 0555
|
||||||
|
restartPolicy: Never
|
||||||
|
---
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: notes
|
||||||
|
namespace: nextcloud
|
||||||
|
spec:
|
||||||
|
storageClassName: nfs-backup-storage-intelligent
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
|
---
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-notes-backup
|
||||||
|
namespace: nextcloud
|
||||||
|
annotations:
|
||||||
|
fileType: Backup
|
||||||
|
spec:
|
||||||
|
storageClassName: nfs-storage-fastaccess
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
Reference in New Issue
Block a user