backups added resources limits, set offsite backup size limit to 15GB
All checks were successful
/ continuous-deploy (push) Successful in 6s

This commit is contained in:
2025-12-04 01:16:24 +00:00
parent 82f60d8371
commit f5df6a63db
2 changed files with 29 additions and 8 deletions

View File

@@ -17,6 +17,13 @@ spec:
restartPolicy: Never restartPolicy: Never
initContainers: initContainers:
- name: postgres-export - name: postgres-export
resources:
limits:
memory: "512Mi"
cpu: "500m"
requests:
memory: "256Mi"
cpu: "250m"
image: postgres:latest image: postgres:latest
command: ["sh", "-c"] command: ["sh", "-c"]
args: args:
@@ -42,13 +49,13 @@ spec:
- name: borg-client - name: borg-client
image: git.limbosolutions.com/kb/borg-backup:latest image: git.limbosolutions.com/kb/borg-backup:latest
imagePullPolicy: Always imagePullPolicy: Always
# resources: resources:
# limits: limits:
# memory: "512Mi" memory: "512Mi"
# cpu: "500m" cpu: "500m"
# requests: requests:
# memory: "256Mi" memory: "256Mi"
# cpu: "250m" cpu: "250m"
env: env:
- name: BORG_REPO - name: BORG_REPO
valueFrom: valueFrom:
@@ -74,7 +81,7 @@ spec:
value: ssh -p 2222 -o StrictHostKeyChecking=no -o LogLevel=ERROR value: ssh -p 2222 -o StrictHostKeyChecking=no -o LogLevel=ERROR
- name: REPO_SYNC_MAX_SIZE - name: REPO_SYNC_MAX_SIZE
value: "10737418240" # 10GB value: "16106127360" # 15GB
- name: MODE - name: MODE
value: SHELL value: SHELL

View File

@@ -17,6 +17,13 @@ spec:
initContainers: initContainers:
- name: postgres-export - name: postgres-export
image: postgres:latest image: postgres:latest
resources:
limits:
memory: "512Mi"
cpu: "500m"
requests:
memory: "256Mi"
cpu: "250m"
command: ["sh", "-c"] command: ["sh", "-c"]
args: args:
- | - |
@@ -45,6 +52,13 @@ spec:
- name: gitea-pbs-client - name: gitea-pbs-client
image: git.limbosolutions.com/kb/pbsclient image: git.limbosolutions.com/kb/pbsclient
imagePullPolicy: Always imagePullPolicy: Always
resources:
limits:
memory: "512Mi"
cpu: "500m"
requests:
memory: "256Mi"
cpu: "250m"
env: env:
- name: MODE - name: MODE
value: shell value: shell