forked from devtud/calibre-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
57 lines (57 loc) · 1.33 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: calibre
namespace: calibre
labels:
app: calibre
version: latest
type: third-party
facing: internal
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: calibre
template:
metadata:
labels:
app: calibre
spec:
containers:
- name: calibre
image: linuxserver/calibre-web:latest
env:
- name: PUID
value: "1001"
- name: PGID
value: "1001"
- name: TZ
value: "Europe/Bucharest"
- name: DOCKER_MODS
value: "linuxserver/calibre-web:calibre"
ports:
- name: "http-port"
containerPort: 8083
protocol: TCP
volumeMounts:
- name: calibre-config
mountPath: /config
- name: calibre-books
mountPath: /books
resources:
requests:
memory: '128Mi'
cpu: '100m'
limits:
memory: '512Mi'
cpu: '1000m'
volumes:
- name: calibre-config
persistentVolumeClaim:
claimName: calibre-config
- name: calibre-books
persistentVolumeClaim:
claimName: calibre-books