-
Notifications
You must be signed in to change notification settings - Fork 0
/
helmrelease.yaml
95 lines (95 loc) · 2.63 KB
/
helmrelease.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
apiVersion: v1
kind: Secret
metadata:
name: borgbase-ssh
namespace: relax-sounds
annotations:
reflector.v1.k8s.emberstack.com/reflects: default/borgbase-ssh
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: borgmatic
namespace: relax-sounds
spec:
chart:
spec:
chart: borgmatic
version: 0.10.0
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
namespace: flux-system
name: gabe565
interval: 1h
driftDetection:
mode: enabled
values:
controller:
type: cronjob
cronjob:
schedule: 40 0 * * *
ttlSecondsAfterFinished: 3600
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
app.kubernetes.io/name: relax-sounds
podLabels:
policy.gabe565.com/egress-healthchecks: "true"
policy.gabe565.com/egress-namespace: "true"
policy.gabe565.com/egress-world: "true"
env:
TZ: America/Chicago
BORG_PASSPHRASE: ${borg_passphrase}
PING_KEY:
secretKeyRef:
name: healthchecks-ping-key
key: key
persistence:
data:
enabled: true
storageClass: nfs-client
size: 100Mi
accessMode: ReadWriteMany
ssh:
enabled: true
type: secret
name: borgbase-ssh
relax-sounds-data:
enabled: true
existingClaim: relax-sounds-data
configMaps:
config:
data:
# language=yaml
config.yaml: |
repositories:
- path: ${borg_repo}
label: borgbase
source_directories:
- /relax-sounds-data
exclude_patterns:
- /relax-sounds-data/backups
- /relax-sounds-data/data.db*
- /relax-sounds-data/logs.db*
archive_name_format: "relax-sounds-{now:%Y-%m-%d-%H%M%S}"
ssh_command: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR
retries: 2
retry_wait: 10
keep_daily: 90
keep_weekly: 24
keep_monthly: 24
keep_yearly: 20
check_last: 3
sqlite_databases:
- name: data
path: /relax-sounds-data/data.db
- name: logs
path: /relax-sounds-data/logs.db
healthchecks:
ping_url: http://healthchecks.healthchecks:8000/ping/${healthchecks_uuid}