-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathduplicati-deploy.yml
81 lines (81 loc) · 1.88 KB
/
duplicati-deploy.yml
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
kind: Deployment
apiVersion: apps/v1
metadata:
name: duplicati
labels:
app: duplicati
part-of: duplicati
spec:
replicas: 1
selector:
matchLabels:
app: duplicati
part-of: duplicati
strategy:
type: Recreate
template:
metadata:
labels:
app: duplicati
part-of: duplicati
spec:
serviceAccountName: duplicati
containers:
- name: duplicati
image: lscr.io/linuxserver/duplicati:2.0.6
ports:
- name: duplicati
containerPort: 8200
env:
- name: PUID
value: "0"
- name: PGID
value: "0"
- name: TZ
value: "Europe/Paris"
- name: UMASK
value: "022"
- name: CLI_ARGS
valueFrom:
secretKeyRef:
name: duplicati
key: ARGS
volumeMounts:
- name: duplicati
mountPath: /config
- name: sources
mountPath: /sources
- name: duplicati-secrets
mountPath: "/mnt/vault"
readOnly: true
securityContext:
allowPrivilegeEscalation: false
runAsUser: 0
# resources:
# limits:
# memory: 150Mi
# requests:
# memory: 100Mi
readinessProbe:
tcpSocket:
port: duplicati
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: duplicati
initialDelaySeconds: 15
periodSeconds: 20
volumes:
- name: duplicati
persistentVolumeClaim:
claimName: duplicati
- name: sources
persistentVolumeClaim:
claimName: sources
- name: duplicati-secrets
csi:
driver: "secrets-store.csi.k8s.io"
readOnly: true
volumeAttributes:
secretProviderClass: "duplicati"