backups: git.limbosolutions.com/kb/borg-backup:latest alpine revision

This commit is contained in:
2025-09-14 01:29:26 +00:00
parent 192e1df7c5
commit 944caaa545
5 changed files with 54 additions and 49 deletions

View File

@@ -9,6 +9,7 @@ spec:
containers:
- name: borgbackup-sidekick
image: git.limbosolutions.com/kb/borg-backup:latest
imagePullPolicy: Always
resources:
limits:
memory: "512Mi"
@@ -21,18 +22,18 @@ spec:
valueFrom:
secretKeyRef:
name: gitea-backup-secret
key: BORG_REPO
key: borg_repo
- name: BORG_PASSPHRASE
valueFrom:
secretKeyRef:
name: gitea-backup-secret
key: BORG_PASSPHRASE
key: borg_passphrase
- name: BORG_RSH
value: ssh -o StrictHostKeyChecking=no
value: ssh -p 2222 -o StrictHostKeyChecking=no -o LogLevel=ERROR
- name: BORG_KEY_FILE
- name: borg_key_file
value: /root/.borg/key
command: ["sh", "-c"]
@@ -44,13 +45,14 @@ spec:
volumeMounts:
- name: gitea-backup-secret
mountPath: /root/.borg/key
subPath: BORG_KEY_FILE
- name: gitea-backup-secret
mountPath: /root/.ssh/id_rsa
subPath: ssh_id_rsa
readOnly: true
- name: gitea-backup-secret
mountPath: /root/.ssh/id_rsa
subPath: SSH_ID_RSA
- name: gitea-backup-secret
mountPath: /app/borg/key
subPath: borg_key
volumes:
- name: gitea-backup-secret
secret: