-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrembg-deployment.yaml
47 lines (47 loc) · 1.1 KB
/
rembg-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.35.0 (HEAD)
labels:
io.kompose.service: rembg
name: rembg
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: rembg
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.35.0 (HEAD)
labels:
io.kompose.service: rembg
spec:
containers:
- image: ironnicko1413/outfits.ai-rembg:latest
livenessProbe:
exec:
command:
- curl
- http://localhost:7001
failureThreshold: 5
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 10
name: rembg
ports:
- containerPort: 7001
protocol: TCP
volumeMounts:
- mountPath: /var/lib/.u2net
name: pgdata
restartPolicy: Always
volumes:
- name: pgdata
persistentVolumeClaim:
claimName: pgdata