blob: 5c77bb186e0599493b1e810caab5258bc205c919 (
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
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: pocket-id
spec:
replicas: 1
selector:
matchLabels:
app: pocket-id
template:
metadata:
labels:
app: pocket-id
spec:
securityContext:
fsGroup: 1000
volumes:
- name: data
persistentVolumeClaim:
claimName: pocket-id
containers:
- name: main
image: ghcr.io/pocket-id/pocket-id:v0.35.0
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: false
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
envFrom:
- configMapRef:
name: pocket-id
resources:
limits:
memory: "512Mi"
cpu: "1"
ports:
- containerPort: 8080
name: backend
- containerPort: 3000
name: frontend
- containerPort: 80
name: http
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 200
timeoutSeconds: 5
periodSeconds: 10
successThreshold: 1
failureThreshold: 10
volumeMounts:
- name: data
mountPath: /app/backend/data
subPath: data
|