Improve backups
This commit is contained in:
parent
bcaeafa455
commit
b6edc128ad
@ -185,8 +185,12 @@ releases:
|
|||||||
namespace: k8up
|
namespace: k8up
|
||||||
createNamespace: true
|
createNamespace: true
|
||||||
chart: k8up-io/k8up
|
chart: k8up-io/k8up
|
||||||
# backups
|
values:
|
||||||
- name: k8up-backup
|
- ./k8up/values.yaml
|
||||||
|
|
||||||
|
|
||||||
|
# backups
|
||||||
|
- name: ghost-backup
|
||||||
namespace: ghost
|
namespace: ghost
|
||||||
chart: ./k8up-backup
|
chart: ./k8up-backup
|
||||||
createNamespace: true
|
createNamespace: true
|
||||||
@ -212,7 +216,6 @@ releases:
|
|||||||
value: {{ requiredEnv "HETZNER_S3_ACCESS_SECRET" }}
|
value: {{ requiredEnv "HETZNER_S3_ACCESS_SECRET" }}
|
||||||
- name: repoPassword
|
- name: repoPassword
|
||||||
value: {{ requiredEnv "k8UP_REPO_PASSWORD" }}
|
value: {{ requiredEnv "k8UP_REPO_PASSWORD" }}
|
||||||
|
|
||||||
- name: gitea-backup
|
- name: gitea-backup
|
||||||
namespace: gitea
|
namespace: gitea
|
||||||
chart: ./k8up-backup
|
chart: ./k8up-backup
|
||||||
@ -226,4 +229,16 @@ releases:
|
|||||||
value: {{ requiredEnv "HETZNER_S3_ACCESS_SECRET" }}
|
value: {{ requiredEnv "HETZNER_S3_ACCESS_SECRET" }}
|
||||||
- name: repoPassword
|
- name: repoPassword
|
||||||
value: {{ requiredEnv "k8UP_REPO_PASSWORD" }}
|
value: {{ requiredEnv "k8UP_REPO_PASSWORD" }}
|
||||||
|
- name: immich-backup
|
||||||
|
namespace: immich
|
||||||
|
chart: ./k8up-backup
|
||||||
|
createNamespace: true
|
||||||
|
values:
|
||||||
|
- ./k8up-backup/values_override.yaml
|
||||||
|
setString:
|
||||||
|
- name: credentials.id
|
||||||
|
value: {{ requiredEnv "HETZNER_S3_ACCESS_KEY" }}
|
||||||
|
- name: credentials.key
|
||||||
|
value: {{ requiredEnv "HETZNER_S3_ACCESS_SECRET" }}
|
||||||
|
- name: repoPassword
|
||||||
|
value: {{ requiredEnv "k8UP_REPO_PASSWORD" }}
|
||||||
|
@ -16,11 +16,15 @@ immich:
|
|||||||
redis:
|
redis:
|
||||||
enabled: true
|
enabled: true
|
||||||
master:
|
master:
|
||||||
|
persistence:
|
||||||
|
annotations:
|
||||||
|
k8up.io/backup: 'false'
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
limits:
|
limits:
|
||||||
cpu: 1
|
cpu: 1
|
||||||
|
|
||||||
server:
|
server:
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# {{- if .Values.oneTimeBackup }}
|
||||||
|
|
||||||
apiVersion: k8up.io/v1
|
apiVersion: k8up.io/v1
|
||||||
kind: Backup
|
kind: Backup
|
||||||
metadata:
|
metadata:
|
||||||
@ -18,3 +20,4 @@ spec:
|
|||||||
secretAccessKeySecretRef:
|
secretAccessKeySecretRef:
|
||||||
name: "{{ .Release.Name }}-credentials"
|
name: "{{ .Release.Name }}-credentials"
|
||||||
key: key
|
key: key
|
||||||
|
# {{- end }}
|
||||||
|
35
k8up-backup/templates/schedule.yaml
Normal file
35
k8up-backup/templates/schedule.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# {{- if not .Values.oneTimeBackup }}
|
||||||
|
apiVersion: k8up.io/v1
|
||||||
|
kind: Schedule
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Release.Name }}-schedule"
|
||||||
|
spec:
|
||||||
|
backend:
|
||||||
|
repoPasswordSecretRef:
|
||||||
|
name: "{{ .Release.Name }}-repopassword"
|
||||||
|
key: password
|
||||||
|
s3:
|
||||||
|
endpoint: "{{ .Values.endpoint }}"
|
||||||
|
bucket: "{{ .Values.bucket }}"
|
||||||
|
accessKeyIDSecretRef:
|
||||||
|
name: "{{ .Release.Name }}-credentials"
|
||||||
|
key: id
|
||||||
|
secretAccessKeySecretRef:
|
||||||
|
name: "{{ .Release.Name }}-credentials"
|
||||||
|
key: key
|
||||||
|
backup:
|
||||||
|
schedule: '@hourly-random'
|
||||||
|
failedJobsHistoryLimit: 2
|
||||||
|
successfulJobsHistoryLimit: 2
|
||||||
|
# optional
|
||||||
|
#promURL: https://prometheus-io-instance:8443
|
||||||
|
check:
|
||||||
|
schedule: '@daily-random'
|
||||||
|
# optional
|
||||||
|
#promURL: https://prometheus-io-instance:8443
|
||||||
|
prune:
|
||||||
|
schedule: '@weekly-ramdom'
|
||||||
|
retention:
|
||||||
|
keepLast: 5
|
||||||
|
keep Daily: 14
|
||||||
|
# {{- end }}
|
@ -5,3 +5,4 @@
|
|||||||
# id:
|
# id:
|
||||||
# key:
|
# key:
|
||||||
|
|
||||||
|
oneTimeBackup: false
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
k8up:
|
||||||
|
envVars:
|
||||||
|
- name: BACKUP_GLOBAL_CONCURRENT_BACKUP_JOBS_LIMIT
|
||||||
|
values: 1
|
Loading…
x
Reference in New Issue
Block a user