add ns and pvc and launch a first try
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 20s

This commit is contained in:
2024-11-18 22:38:26 +00:00
parent a194812377
commit 418badf14c
4 changed files with 50 additions and 31 deletions
+15 -31
View File
@@ -1,8 +1,8 @@
apiVersion: batch/v1
kind: Job
metadata:
name: nextcloud-notes-backup-job-python
namespace: nextcloud
name: rsync-synology-job
namespace: backup
spec:
backoffLimit: 6
template:
@@ -10,45 +10,29 @@ spec:
containers:
- command:
- /bin/sh
- /config/export_notes.sh
env:
- name: PI_USER_USERNAME
valueFrom:
secretKeyRef:
key: PI_USER_USERNAME
name: nextcloud-credentials
- name: PI_USER_PASSWORD
valueFrom:
secretKeyRef:
key: PI_USER_PASSWORD
name: nextcloud-credentials
- /config/rsync.sh
image: alpine
imagePullPolicy: Always
name: notes-backup
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
name: rsync-synology
volumeMounts:
- mountPath: /backup
name: notes
- mountPath: /var/www/html
name: nextcloud-webserver
- name: synology-backup
mountPath: /destination
- name: ssd
mountPath: /source
- mountPath: /config
name: scripts
dnsPolicy: ClusterFirst
restartPolicy: Never
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: notes
- name: ssd
hostPath:
path: /ssd/
type: Directory
- name: synology-backup
persistentVolumeClaim:
claimName: nextcloud-notes-backup
- name: nextcloud-webserver
persistentVolumeClaim:
claimName: nextcloud-webserver
claimName: synology-backup
- configMap:
defaultMode: 365
name: nextcloud-export-scripts
name: rsync-scripts
name: scripts
ttlSecondsAfterFinished: 100