-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkomga-deploy.yml
78 lines (78 loc) · 1.85 KB
/
komga-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
kind: Deployment
apiVersion: apps/v1
metadata:
name: komga
labels:
app: komga
part-of: komga
spec:
replicas: 1
selector:
matchLabels:
app: komga
part-of: komga
strategy:
type: Recreate
template:
metadata:
labels:
app: komga
part-of: komga
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
containers:
- name: komga
image: gotson/komga:0.157.3
ports:
- name: komga
containerPort: 8080
env:
- name: KOMGA_LIBRARIES_SCAN_CRON
value: "0 0 * * * ?"
- name: KOMGA_REMEMBERME_KEY
value: "random"
- name: JAVA_TOOL_OPTIONS
value: "-XX:+UseContainerSupport -XX:+UnlockExperimentalVMOptions -XX:MaxRAM=2g"
- name: KOMGA_FILE_HASHING
value: "false"
- name: KOMGA_OAUTH2_ACCOUNT_CREATION
value: "true"
volumeMounts:
- name: komga
mountPath: /config
- name: mangas
mountPath: /mangas
readinessProbe:
httpGet:
path: /
port: komga
initialDelaySeconds: 30
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: komga
initialDelaySeconds: 25
periodSeconds: 20
resources:
limits:
memory: 2Gi
requests:
memory: 2Gi
volumes:
- name: komga
persistentVolumeClaim:
claimName: komga
- name: mangas
persistentVolumeClaim:
claimName: mangas