/
helm-release.yaml
109 lines (109 loc) · 2.55 KB
/
helm-release.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: &app kopia
namespace: default
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 1.2.0
sourceRef:
kind: HelmRepository
name: bjw-s-charts
namespace: flux-system
install:
createNamespace: true
remediation:
retries: 5
upgrade:
remediation:
retries: 5
values:
initContainers:
wait-for-repo:
image: ghcr.io/onedr0p/kopia:0.12.1@sha256:4ee9bc68299481fced34899eaec8bd42a6c9e5db902c6bef61ba0b0094b25b3b
command:
- /bin/bash
- -c
- |-
until [ -f /snapshots/kopia.repository.f ]; do
printf "\e[1;32m%-6s\e[m\n" "Waiting for the Kopia repo to become ready ..."
sleep 1
done
volumeMounts:
- name: snapshots
mountPath: /snapshots
image:
repository: ghcr.io/onedr0p/kopia
tag: 0.12.1@sha256:4ee9bc68299481fced34899eaec8bd42a6c9e5db902c6bef61ba0b0094b25b3b
env:
TZ: "${TIMEZONE}"
KOPIA_PASSWORD: "none"
command: kopia
args:
- server
- --insecure
- --address
- 0.0.0.0:80
- --metrics-listen-addr
- 0.0.0.0:8080
- --without-password
- --log-level
- debug
service:
main:
ports:
http:
port: 80
metrics:
enabled: true
port: 8080
serviceMonitor:
main:
enabled: true
endpoints:
- port: metrics
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
ingress:
main:
enabled: true
ingressClassName: "nginx"
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_PUBLIC_DOMAIN}"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host
podSecurityContext:
supplementalGroups:
- 100
persistence:
config:
enabled: true
type: configMap
name: *app
subPath: repository.config
mountPath: /config/repository.config
readOnly: true
snapshots:
enabled: true
type: nfs
server: "expanse.${SECRET_PRIVATE_DOMAIN}"
path: /eros/Apps/Kopia
mountPath: /snapshots
podAnnotations:
configmap.reloader.stakater.com/reload: *app
resources:
requests:
cpu: 10m
memory: 100Mi
limits:
memory: 500Mi