docs: example deployment
This commit is contained in:
55
example-deployment.yaml
Normal file
55
example-deployment.yaml
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: backup-sidecar
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: backup-sidecar
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: backup-sidecar
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: backup-sidecar
|
||||||
|
image: gitea.t000-n.de/t.behrendt/backupsidecar:latest
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /mnt/toBackup
|
||||||
|
name: data
|
||||||
|
readOnly: true
|
||||||
|
- mountPath: /mnt/backups/gitea
|
||||||
|
name: nfs-backup
|
||||||
|
subPath: gitea
|
||||||
|
env:
|
||||||
|
- name: INTERVAL
|
||||||
|
value: "15 14 * * *"
|
||||||
|
- name: RESTIC_REPOSITORY
|
||||||
|
value: /mnt/backups/gitea
|
||||||
|
- name: SOURCEDIR
|
||||||
|
value: "/mnt/toBackup/"
|
||||||
|
- name: KEEPLAST
|
||||||
|
value: "100"
|
||||||
|
- name: RESTIC_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: restic-credentials
|
||||||
|
key: password
|
||||||
|
- name: RUNONSTART
|
||||||
|
value: "false"
|
||||||
|
- name: GOTIFYHOST
|
||||||
|
value: "https://<gotify-URL>"
|
||||||
|
- name: GOTIFYTOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: gotify-credentials
|
||||||
|
key: token
|
||||||
|
- name: GOTIFYTOPIC
|
||||||
|
value: "gitea"
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: data
|
||||||
|
- name: nfs-backup
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: backup-nfs
|
||||||
Reference in New Issue
Block a user