-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvalues.yaml
180 lines (176 loc) · 5.47 KB
/
values.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.4.0/charts/library/common/values.schema.json
# Removing Cloudflare caching was necessary, else any actions got me logged out : https://github.com/janeczku/calibre-web/issues/1466#issuecomment-1199885344
# Configure options applied to all pods
app-template:
# defaultPodOptions:
# automountServiceAccountToken: false
# securityContext:
# runAsUser: 568
# runAsGroup: 568
# fsGroup: 568
# fsGroupChangePolicy: "OnRootMismatch"
controllers:
# Configure the main controller
main:
type: deployment
annotations:
reloader.stakater.com/auto: "true"
containers:
main:
image:
repository: crocodilestick/calibre-web-automated
tag: v2.0.1
env:
TZ: Europe/Paris
DOCKER_MODS: "lscr.io/linuxserver/mods:universal-calibre-v7.16.0"
LOG_LEVEL: DEBUG
ports:
- name: http
containerPort: 8083
probes:
liveness:
enabled: true
type: HTTP
readiness:
enabled: true
type: HTTP
book-downloader:
type: deployment
annotations:
reloader.stakater.com/auto: "true"
containers:
main:
image:
repository: ghcr.io/calibrain/calibre-web-automated-book-downloader
tag: latest@sha256:f26c01c483d065e52cd0b3ff4b681d38a914e8b0393f545144a82f53df225341
env:
TZ: Europe/Paris
FLASK_PORT: 8084
FLASK_DEBUG: false
CLOUDFLARE_PROXY_URL: http://localhost:8000
INGEST_DIR: /cwa-book-ingest
BOOK_LANGUAGE: en,fr
ports:
- name: http
containerPort: 8084
probes:
liveness:
enabled: true
custom: true
spec:
httpGet:
port: http
path: /request/api/status
readiness:
enabled: true
custom: true
spec:
httpGet:
port: http
path: /request/api/status
cloudflare-bypass:
image:
repository: ghcr.io/sarperavci/cloudflarebypassforscraping
tag: latest@sha256:b5b2406f38b01ede88d375f56f996dbcf280f5b6d6eecd14a107a99fcd3e8fc8
env:
TZ: Europe/Paris
ports:
- name: http
containerPort: 8000
probes:
liveness:
enabled: true
custom: true
spec:
tcpSocket:
port: http
readiness:
enabled: true
custom: true
spec:
tcpSocket:
port: http
service:
main:
controller: main
type: ClusterIP
ports:
http:
port: 8083
book-downloader:
controller: book-downloader
type: ClusterIP
ports:
http:
port: 8084
ingress:
main:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
external-dns.alpha.kubernetes.io/target: home.terence.cloud
# external-dns.alpha.kubernetes.io/cloudflare-proxied: "false"
nginx.ingress.kubernetes.io/proxy-body-size: 100m
gethomepage.dev/enabled: "true"
gethomepage.dev/name: "Calibre"
gethomepage.dev/description: "A book library manager."
gethomepage.dev/group: "Media"
gethomepage.dev/icon: "calibre"
# nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/auth"
# nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$escaped_request_uri"
# nginx.ingress.kubernetes.io/auth-response-headers: X-Auth-Request-User
className: "nginx"
hosts:
- host: &host calibre.terence.cloud
paths:
- path: /
pathType: Prefix
service:
identifier: main
port: http
tls:
- secretName: calibre-tls
hosts:
- *host
book-downloader:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
external-dns.alpha.kubernetes.io/target: home.terence.cloud
nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$escaped_request_uri"
nginx.ingress.kubernetes.io/auth-response-headers: X-Auth-Request-User
className: "nginx"
hosts:
- host: &host calibredl.terence.cloud
paths:
- path: /
pathType: Prefix
service:
identifier: book-downloader
port: http
tls:
- secretName: calibredl-tls
hosts:
- *host
persistence:
# Configure the main configuration storage location
config:
enabled: true
type: persistentVolumeClaim
accessMode: ReadWriteOnce
size: 50Mi
globalMounts:
- path: /config
calibre-library:
enabled: true
size: 10Gi
accessMode: ReadWriteOnce
type: persistentVolumeClaim
globalMounts:
- path: /calibre-library
cwa-book-ingest:
enabled: true
size: 10Gi
accessMode: ReadWriteOnce
type: persistentVolumeClaim
globalMounts:
- path: /cwa-book-ingest