Implement restic-backup for Gitea #46
|
@ -10,6 +10,8 @@ resources:
|
||||||
- restic-sa.yaml
|
- restic-sa.yaml
|
||||||
- restic-role.yaml
|
- restic-role.yaml
|
||||||
- restic-role-binding.yaml
|
- restic-role-binding.yaml
|
||||||
|
- restic-pvc.yaml
|
||||||
|
- restic-debug-pod.yaml
|
||||||
- restic-cronjob.yaml
|
- restic-cronjob.yaml
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: restic-debug-pod
|
||||||
|
namespace: gitea
|
||||||
|
spec:
|
||||||
|
serviceAccountName: restic-sa
|
||||||
|
volumes:
|
||||||
|
- name: restic-backup-vol
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: restic-backup-vol
|
||||||
|
- name: gitea-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: gitea-shared-storage
|
||||||
|
containers:
|
||||||
|
- name: restic-debug
|
||||||
|
image: git.namesny.com/cluster/restic:latest
|
||||||
|
command: ["/bin/sh", "-c"]
|
||||||
|
args: ["sleep infinity"]
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: restic-secret
|
||||||
|
volumeMounts:
|
||||||
|
- name: restic-backup-vol
|
||||||
|
mountPath: /backup
|
||||||
|
- name: gitea-data
|
||||||
|
mountPath: /gitea
|
||||||
|
|
Loading…
Reference in New Issue