blob: 56bc11b90570fa395235a22de88883a8d80b209d (
plain)
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
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: player
labels:
app: player
spec:
replicas: 1
selector:
matchLabels:
app: player
template:
metadata:
labels:
app: player
spec:
securityContext:
runAsNonRoot: true
fsGroup: 65534
containers:
- name: app
image: player:latest
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 65534
runAsGroup: 65534
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
ports:
- containerPort: 8080
name: http
envFrom:
- secretRef:
name: player-secret
optional: true
env:
- name: PORT
value: "8080"
- name: DB_PATH
value: "/data/media.db"
- name: MEDIA_ROOT
value: "/media"
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /readyz
port: http
initialDelaySeconds: 3
periodSeconds: 5
volumeMounts:
- name: data
mountPath: /data
- name: media
mountPath: /media
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "1000m"
volumes:
- name: data
persistentVolumeClaim:
claimName: player-db
- name: media
persistentVolumeClaim:
claimName: player-media
|