54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
namespace: shelfmark
|
|
name: shelfmark
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: shelfmark
|
|
serviceName: shelfmark
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: shelfmark
|
|
spec:
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 10
|
|
containers:
|
|
- name: shelfmark
|
|
image: ghcr.io/calibrain/shelfmark:latest
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 256Mi
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
- name: books
|
|
mountPath: /books
|
|
subPath: Books
|
|
- name: downloads
|
|
mountPath: /downloads
|
|
ports:
|
|
- containerPort: 8084
|
|
env:
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1000"
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: shelfmark-pvc
|
|
- name: books
|
|
persistentVolumeClaim:
|
|
claimName: shelfmark-books
|
|
- name: downloads
|
|
persistentVolumeClaim:
|
|
claimName: shelfmark-downloads
|